java coding interview questions

Java program to print rectangle of stars

Java program to print rectangle of stars Java program to print a particular pattern of stars or numbers is one of the commonly asked Java interview questions. [...]

FizzBuzz game program in Java

FizzBuzz game program in Java FizzBuzz is a fun game played by school children. Players take turns to count numbers incrementally. The rules are simple: if [...]

Java program to find the largest and smallest number

Java program to find the largest and smallest number Write a Java program to find the largest and smallest number is one of the commonly asked Java coding [...]

Java program to check happy number using recursion

Java program to check happy number using recursion Write a Java program to check if the given number is happy or not is a commonly asked coding interview [...]

Write a Java program to merge two sorted arrays

Java program to merge two sorted arrays Write a Java program to merge two sorted arrays is one of the frequently asked Java coding interview questions. In [...]

Java program for longest common substring

Java program for longest common substring Longest common substring is the substring of two or more strings. In this post, we will see Java program for [...]

Java program to print pyramid of stars

Java program to print pyramid of stars Writing Java programs to print certain patterns will help you to master nested loops and recursion in Java. There are [...]

Java program to print Pascal triangle

Java program to print Pascal triangle Write a Java program to print Pascal triangle is one of the frequently asked Java coding interview questions. The [...]

Java program to reverse an integer array

Java program to reverse an integer array Write a Java program to reverse an integer array is one of the commonly asked Java coding interview questions for [...]

Java program to reverse an ArrayList

Java program to reverse an ArrayList Write a Java program to reverse an ArrayList is one of the commonly asked Java interview questions. You can reverse an [...]