Table of Contents
- Java Basic Coding on if else statement
- Java Basic Coding on loop
- Java Program on Switch Statement
- Java Coding questions on String Concepts
- Java Basic Programs on Array Concepts
- Java Coding problems on Matrix Concept
- Java Coding Questions of Singly Linked List
- Java Coding Questions of Doubly Linked List
- Java Coding Questions of Circular Linked List
- Java Coding questions on Searching
- Java Coding questions on Sorting
Java Basic Coding on if else statement
- Java Program to print maximum among two numbers.
- Java Program to print maximum among three numbers.
- Java Program to check a given number is divisible by 3 or not.
- Java Program to check a given number is divisible by 5 or not.
- Java Program to check a given number is divisible by 11 or not.
- Java Program to check a given number is even or odd.
- Java Program to check whether a year is leap year or not.
- Java Program to check a given input is digit or not.
- Java Program to check a given input is alphabet or not.
- Java Program to check a given input is digit or alphabets.
- Java Program to check a given number is positive or negative number.
- Java Program to convert temperature from Celsius to Fahrenheit and Fahrenheit to Celsius.
- Java Program to check whether a character is vowel or consonant.
- Java Program to check whether a character is vowel or consonant or special character.
- Java Program to check a given character is uppercase or lowercase.
- Java Program to print week day for a given input week.
- Java Program to print number of days for a given input month.
- Java Program to check a triangle is equilateral, isosceles or scalene triangle.
- Java Program to check a person is valid for vote or not?
- Java Program to check Division on the basis of marks obtained by students. Percentage >= 60% : Division 1, Percentage >= 45% : Division 2, Percentage >= 30% : Division 3, Percentage < 30% : Fail
- Java Program to Calculate percentage and grade of students on the basis of marks obtained in 5 subjects Maths, Physics, Chemistry, English and Hindi. Marks of subject is taken as an input: Percentage >= 90% : Grade A, Percentage >= 80% : Grade B, Percentage >= 70% : Grade C, Percentage >= 60% : Grade D, Percentage >= 40% : Grade E, Percentage < 40% : Grade F
Java Basic Coding on loop
- Java Program to print all natural numbers in a given range.
- Java Program to print all even numbers in a given range.
- Java Program to print all odd number in a given range.
- Java Program to print sum of all even numbers in a given range.
- Java Program to print sum of all odd numbers in a given range.
- Java Program to print multiplication table of a given number.
- Java Program to count the digits of a given number.
- Java Program to print the sum of digits of a given number.
- Java Program to print all natural numbers in reverse order.
- Java Program to check whether a given number is Prime or not.
- Java Program to print all Prime numbers between in a given range.
- Java Program to find sum of all prime numbers in a given range.
- Java Program to check a given number is Armstrong or not.
- Java Program to print all Armstrong numbers in a given range.
- Java Program to check a given number is Perfect or not.
- Java Program to check all Perfect numbers in a given range.
- Java Program to check a given number is Strong number or not.
- Java Program to print all Strong numbers in a given range.
- Program in Java to swap first and last digit of number.
- Java Program to swap values using third variable.
- Java Program to swap values without using third variable.
- Java Program to calculate power of a number without using pow method.
- Java Program to calculate power of a number using pow method.
- Java Program to check number is palindrome or not.
- Java Program to print Fibonacci series of a given number.
- Java Program to print Fibonacci series of a given number using recursion.
- Java Program to print the frequency of digits in given number.
- Program in Java to print ASCII character with values.
- Java Program to print all alphabets from a to z.
- Java Program to print all uppercase alphabets.
- Java Program to print all lowercase alphabets.
- Java Program to print all factors of a number.
- Java Program to print HCF (GCD) of two numbers.
- Java Program to print LCM of two numbers.
- Java Program to find all prime factors of a number.
Java Program on Switch Statement
- Java Program to print day name of given week using switch statement.
- Java Program print total number of days in a given month using switch Statement.
- Java Program to check a given alphabet is vowel or consonant using switch statement.
- Java Program to check a given number is positive, negative or zero using switch statement.
- Java Program to print maximum among two numbers using switch statement.
- Java Program to check a given number is even or odd using switch statement.
- Java Program to create Simple Calculator using switch statement.
- Java Program to check whether a year is a leap year or not using switch statement.
- Java Program to check a given triangle is an equilateral, isosceles or scalene triangle using switch statement.
- Java Program to Convert positive number into negative and negative number into a positive using switch statement.
Java Coding questions on String Concepts
- Java Program to print the length of given string.
- Java Program to concatenate two strings.
- Java Program to compare two strings.
- Java Program to perform copy of one string to another string.
- Java Program to convert lowercase string to uppercase.
- Java Program to convert uppercase string to lowercase.
- Java Program to reverse order of words in a given string.
- Java Program to print the frequency of alphabets, digits or special character in a string.
- Java Program to count total number of vowels and consonants in a string.
- Java Program to count total number of words in a string.
- Java Program to find reverse of a string.
- Java Program to check whether a string is palindrome or not.
- Java Program to print the first character in a given string.
- Java Program to print the last character in a given string.
- Java Program to print the frequency of each character in a string.
- Java Program to find highest frequency character in a string.
- Java Program to find lowest frequency character in a string.
- Java Program to remove first character from string.
- Java Program to remove last character from string.
- Java Program to remove all vowels from string.
- Java Program to remove all consonants from a given string.
- Java Program to replace all space with * in a given string.
- Java Program to remove line break from the string.
Java Basic Programs on Array Concepts
- Java Program to take input and print elements of array.
- Java Program to count total number of elements in array.
- Java Program to count total number of even and odd elements in an array.
- Java Program to count total number of negative elements in an array.
- Java Program to print all negative elements in an array.
- Java Program to find reverse of an array.
- Java Program to find reverse of an array without using temp variable.
- Java Program to find sum of all array elements.
- Java Program to print minimum and maximum element in an array.
- Java Program to print second largest element in an array.
- Java Program to copy one array to another array.
- Java Program to insert an element in an array at end.
- Java Program to insert an element in an array at first.
- Java Program to insert an element in an array at given location.
- Java Program to delete an element in an array at end.
- Java Program to delete an element in an array at first.
- Java Program to delete an element from an array at given index.
- Java Program to count and print frequency of each element in an array.
- Java Program to print all unique elements in the array.
- Java Program to count total number of duplicate elements in an array.
- Java Program to delete all duplicate elements from an array.
- Java Program to merge two array to third array.
- Java Program to sperate even and odd number of array in two separate array.
- Java Program to search an element in an array.
- Java Program to sort array elements in ascending order.
- Java Program to sort array elements in descending order.
- Java Program to perform one left rotation on array.
- Java Program to perform one right rotation on an array.
- Java Program to perform two left rotation on array.
- Java Program to perform two right rotation on an array.
- Java Program to check two array are equal in size or not.
- Java Program to find largest and smallest number in array.
- Java Program to find second highest number in an array.
- Java Program to find top two maximum number in array.
- Java Program to merge two arrays.
Java Coding problems on Matrix Concept
- Java Program to add two matrices.
- Java Program to subtract two matrices.
- Java Program to multiply two matrices.
- Java Program to find transpose of a matrix.
- Java Program to find upper triangular matrix.
- Java Program to find lower triangular matrix.
- Java Program to perform Scalar matrix multiplication.
- Java Program to check whether two matrices are equal or not.
- Java Program to find sum of each row and column of a matrix.
- Java Program to find sum of main diagonal elements of a matrix.
- Java Program to find sum of minor diagonal elements of a matrix.
- Java Program to interchange diagonals of a matrix.
- Java Program to find sum of upper triangular matrix.
- Java Program to find sum of lower triangular matrix.
- Java Program to find determinant of a matrix.
- Java Program to check Identity matrix.
- Java Program to check Sparse matrix.
- Java Program to check Symmetric matrix.
Java Coding Questions of Singly Linked List
- Java Program to Create and Traverse a Singly linked list.
- Java Program to Insert a node at the beginning of the Singly linked list.
- Java Program to Insert a node at the End of Singly Linked List.
- Java Program to Insert a node at the Given location of Singly Linked List.
- Java Program to Search an element in the Singly linked list.
- Java Program to Delete a node at the beginning of the Singly linked list.
- Java Program to Delete a node at the End of the Singly linked list.
- Java Program to Delete a node at the Given Location of the Singly linked list.
- Java Program to Reverses the Singly linked list.
Java Coding Questions of Doubly Linked List
- Java Program to Create and Traverse a Doubly Linked List.
- Java Program to Insert a node at the beginning of the Doubly Linked List.
- Java Program to Insert a node at the End of Doubly Linked List.
- Java Program to Insert a node at the Given location of Doubly Linked List.
- Java Program to Search an element in the Doubly Linked List.
- Java Program to Delete a node at the beginning of the Doubly Linked List.
- Java Program to Delete a node at the End of the Doubly Linked List.
- Java Program to Delete a node at the Given Location of the Doubly Linked List.
- Java Program to Reverses the Doubly Linked List.
Java Coding Questions of Circular Linked List
- Java Program to Create and Traverse a Circular Linked List.
- Java Program to Insert a node at the beginning of the Circular Linked List.
- Java Program to Insert a node at the End of Circular Linked List.
- Java Program to Insert a node at the Given location of Circular Linked List.
- Java Program to Search an element in the Circular Linked List.
- Java Program to Delete a node at the beginning of the Circular Linked List.
- Java Program to Delete a node at the End of the Circular Linked List.
- Java Program to Delete a node at the Given Location of the Circular Linked List.
- Java Program to Reverses the Circular Linked List.
Java Coding questions on Searching
- Java Program to perform linear search.
- Java Program to perform Binary Search.
Java Coding questions on Sorting
- Java Program to Implement Bubble Sort.
- Java Program to Implement Selection Sort.
- Java Program to Implement Insertion Sort.
- Java Program to Implement Quicksort.
- Java Program to Implement Counting Sort.
- Java Program to Implement Merge Sort.
- Java Program to Implement Radix Sort.
- Java Program to Implement Bucket Sort.
- Java Program to Implement Heap Sort.
- Java Program to Implement Shell Sort.