20 Java Programs to clear Java Interview

Hi Guys , While going for a Java Interview you need to have a good Hands on experience but keep some programs handy too . Below is the list of some popular Java Programs which can be asked in a Java interview .

1. Program to reverse a String in Java .

2. Program to print Fibonacci series in java.

3.Program to print Fibonacci series in java using recursive method .

4.Program in java to find a String in a sentence.

5. Program to count no.of times a word repeats in String in Java

6. Program to find Prime number in java

7. Program to remove a particular character from a sentence

8. Count the Number of Vowels in Java String

9. Find the substring count from a string without string functions in java

10. Program in java to split String without using split() method

11. Program in java to check whether a String is palindrome or not

12. Program to find largest and smallest numbers among N numbers using an array

13 . How to remove duplicate characters from String in Java.

14. Program for Shifting character in a String eg. String "abcde" should be printed as "eabcd"

15. Program to find  Position of a String in another String.

16. How to sort and reverse an array list without using sort method

17. How to find first non-repeated character of a string in Java.

18. Bubble Sort in Java

19. How to find duplicate numbers in list in Java (using Collection)

20. How to Print numbers for 1 to 100 without using for Loop

Post a Comment