199+ List of Basic Java Programs For Practice With Solutions. Java programs are frequently asked in interviews. These programs can be asked from control statements, array, string, oops etc. Java programs for practice for intermediate. Java basic programs like the Fibonacci series, prime numbers, factorial numbers and palindrome numbers are frequently asked in interviews and exams. Beginners java programs for practice PDF Download. If you are new to Java programming, we will recommend you read our Java tutorial first.
Here we have listed down the 11 Java programming categories in which you can find the 200+ List of Basic Java Programs For Practice With Solutions. We almost covered all the categories in java programming, Ie. Basic Programs, Array Programs, Matrix Programs, String Programs, Conversion Programs, Pattern programs, Singly Linked List Programs, Circular Linked List Programs, Doubly Linked List Programs, Tree Programs and Searching and Sorting Programs.
Top 100 Java Programs PDF – Table of Contents
199+ Java Programs For Practice With Category Wise
Below are the top 11 categories. all the Programs List in Java is related to this category.
- Java Basic Programs
- Java Array Programs
- Java Matrix Programs
- Java String Programs
- Java Searching and Sorting Programs
- Java Conversion Programs
- Pattern programs
- Singly Linked List Programs
- Circular Linked List Programs
- Doubly Linked List Programs
- Tree Programs
Basic Java Programs For Practice
- Fibonacci Series in Java
- Prime Number Program in Java
- Palindrome Program in Java
- Factorial Program in Java
- Armstrong Number in Java
- How to Generate Random Numbers in Java
- How to Print Patterns in Java
- How to Compare Two Objects in Java
- How to Create Objects in Java
- How to Print ASCII Value in Java
Array Java Programs For Practice
- Java Program to copy all elements of one array into another array
- Java Program to find the frequency of each element in the array
- Java Program to left rotate the elements of an array
- Java Program to print the duplicate elements of an array
- Java Program to print the elements of an array
- Java Program to print the elements of an array in reverse order
- Java Program to print the elements of an array present on an even position
- Java Program to print the elements of an array present in an odd position
- Java Program to print the largest element in an array
- Java Program to print the smallest element in an array
- Java Program to print the number of elements present in an array
- Java Program to print the sum of all the items of the array
- Java Program to right rotate the elements of an array
- Java Program to sort the elements of an array in ascending order
- Java Program to sort the elements of an array in descending order
- Java Program to Find 3rd Largest Number in an array
- Java Program to Find 2nd Largest Number in an array
- Java Program to Find the Largest Number in an array
- Java to Program Find 2nd Smallest Number in an array
- Java Program to Find the Smallest Number in an array
- Java Program to Remove Duplicate Elements in an array
- Java Program to Print Odd and Even Numbers from an array
- How to Sort an Array in Java
Java Matrix Programs For Practice
Simple Matrix Java Programs for Practice for Beginners and Intermediate.
- Java Program to Add Two Matrices
- Java Program to Multiply Two Matrices
- Java Program to subtract the two matrices
- Java Program to determine whether two matrices are equal
- Java Program to display the lower triangular matrix
- Java Program to display the upper triangular matrix
- Java Program to find the frequency of odd & even numbers in the given matrix
- Java Program to find the product of two matrices
- Java Program to find the sum of each row and each column of a matrix
- Java Program to find the transpose of a given matrix
- Java Program to determine whether a given matrix is an identity matrix
- Java Program to determine whether a given matrix is a sparse matrix
- Java Program to Transpose the matrix
String Programs for Practice
- Java Program to count the total number of characters in a string
- Java Program to count the total number of characters in a string 2
- Java Program to count the total number of punctuation characters that exist in a String
- Java Program to count the total number of vowels and consonants in a string
- Java Program to determine whether two strings are the anagram
- Java Program to divide a string into ‘N’ equal parts.
- Java Program to find all subsets of a string
- Java Program to find the longest repeating sequence in a string
- Java Program to find all the permutations of a string
- Java Program to remove all the white spaces from a string
- Java Program to replace lower-case characters with upper-case and vice-Versa
- Java Program to replace the spaces of a string with a specific character
- Java Program to determine whether a given string is a palindrome
- Java Program to determine whether one string is a rotation of another
- Java Program to find a maximum and minimum occurring character in a string
- Java Program to find the Reverse of the string
- Java program to find the duplicate characters in a string
- Java program to find the duplicate words in a string
- Java Program to find the frequency of characters
- Java Program to find the largest and smallest word in a string
- Java Program to find the most repeated word in a text file
- Java Program to find the number of words in the given text file
- Java Program to separate the Individual Characters from a String
- Java Program to swap two string variables without using a third or temp variable.
- Java Program to print the smallest and biggest possible palindrome word in a given string
Java Searching and Sorting Basic Java Programs For Practice
- Linear Search in Java
- Binary Search in Java
- Bubble Sort in Java
- Selection Sort in Java
- Insertion Sort in Java
Conversion Programs List in Java for Practice
- How to convert String to int in Java
- How to convert int to String in Java
- How to convert String to long in Java
- How to convert long to String in Java
- How to convert String to float in Java
- How to convert float to String in Java
- How to convert String to double in Java
- How to convert double to String in Java
- How to convert String to Date in Java
- How to convert Date to String in Java
- How to convert String to char in Java
- How to convert char to String in Java
- How to convert String to Object in Java
- How to convert an Object to a String in Java
- How to convert int to long in Java
- How to convert long to int in Java
- How to convert int to double in Java
- How to convert double to int in Java
- How to convert char to int in Java
- How to convert int to char in Java
- How to convert String to boolean in Java
- How to convert a boolean to a String in Java
- How to convert date to Timestamp in Java
- How to convert timestamp to Date in Java
- How to convert binary to Decimal in Java
- How to convert decimal to Binary in Java
- How to convert hex to Decimal in Java
- How to convert decimal to Hex in Java
- How to convert octal to Decimal in Java
- How to convert decimal to Octal in Java
Java Simple Java Programs for Practice
Write down the Pattern Programs Java Programs for Practice Online, Beginner must practice these programs for better understanding.
- Java program to print the following spiral pattern on the console
- Java program to print the following pattern
- Java program to print the following pattern 2
- Java program to print the following pattern 3
- Java program to print the following pattern 4
- Java program to print the following pattern 5
- Java program to print the following pattern on the console
Singly Linked List Difficult Java Programs for Practice
- Java Program to create and display a singly linked list
- Java program to create a singly linked list of n nodes and count the number of nodes
- Java program to create a singly linked list of n nodes and display it in reverse order
- Java program to delete a node from the beginning of the singly linked list
- Java program to delete a node from the middle of the singly linked list
- Java program to delete a node from the end of the singly linked list
- Java program to determine whether a singly linked list is the palindrome
- Java program to find the maximum and minimum value node from a linked list
- Java Program to insert a new node in the middle of the singly linked list
- Java program to insert a new node at the beginning of the singly linked list
- Java program to insert a new node at the end of the singly linked list
- Java program to remove duplicate elements from a singly linked list
- Java Program to search an element in a singly linked list
Circular Linked List Java Programs for Practice Intermediate
- Java program to create and display a Circular Linked List
- Java program to create a Circular Linked List of N nodes and count the number of nodes
- Java program to create a Circular Linked List of n nodes and display it in reverse order
- Java program to delete a node from the beginning of the Circular Linked List
- Java program to delete a node from the end of the Circular Linked List
- Java program to delete a node from the middle of the Circular Linked List
- Java program to find the maximum and minimum value node from a circular linked list
- Java program to insert a new node at the beginning of the Circular Linked List
- Java program to insert a new node at the end of the Circular Linked List
- Java program to insert a new node in the middle of the Circular Linked List
- Java program to remove duplicate elements from a Circular Linked List
- Java program to search an element in a Circular Linked List
- Java program to sort the elements of the Circular Linked List
Java Doubly Linked List Programs
16 Advanced Java Programs for Practice for intermediate. You must also C Programs for Practice.
- Java program to convert a given binary tree to a doubly-linked list
- Java program to create a doubly linked list from a ternary tree
- Java program to create a doubly-linked list of n nodes and count the number of nodes
- Java program to create a doubly-linked list of n nodes and display it in reverse order
- Java program to create and display a doubly linked list
- Java program to delete a new node from the beginning of the doubly linked list
- Java program to delete a new node from the end of the doubly linked list
- Java program to delete a new node from the middle of the doubly linked list
- Java program to find the maximum and minimum value node from a doubly linked list
- Java program to insert a new node at the beginning of the Doubly Linked list
- Java program to insert a new node at the end of the Doubly Linked List
- Java program to insert a new node in the middle of the Doubly Linked List
- Java program to remove duplicate elements from a Doubly Linked List
- Java program to rotate doubly linked list by N nodes
- Java program to search an element in a doubly-linked list
- Java program to sort the elements of the doubly linked list
Tree Advanced Java Programs for Practice
- Java Program to calculate the Difference between the Sum of the Odd Level and the Even Level Nodes of a Binary Tree
- Java program to construct a Binary Search Tree and perform deletion and In-order traversal
- Java program to convert Binary Tree to Binary Search Tree
- Java program to determine whether all leaves are at the same level
- Java program to determine whether two trees are identical
- Java program to find the maximum width of a binary tree
- Java program to find the largest element in a Binary Tree
- Java program to find the maximum depth or height of a tree
- Java program to find the nodes which are at the maximum distance in a Binary Tree
- Java program to find the smallest element in a tree
- Java program to find the sum of all the nodes of a binary tree
- Java program to find the total number of possible Binary Search Trees with N keys
- Java program to implement Binary Tree using the Linked List
- Java program to search a node in a Binary Tree
Where Can I Practice Java Exercises?
There are 199+ Lists of Basic Java Programs For Practice With Solutions for you as a beginner. Tutorials Bookmarks Provides 500 programs to check your coding skills in all different-different categories.
Can I Study Java in 2 Days?
The answer is No In a single word. It’s not possible to learn any programming in just 2 days.
Programs List in Java for Practice