basic java programs for interview

Let’s learn basic java programs for interview.

basic java programs for interview

In this post we are going to see 15+ best basic java programs useful for interview.

Below are java interview programs which are very basic like for example; factorial program using recursion, fibonacci series java program, palindrome program in java and many more.

Also read – java complete reference

As a matter of fact IT companies ask prospective employees java programs in interviews apart from aptitude test and theory.

Meanwhile below basic java programs are executed with outputs which gives you an idea of program flow.

Java reverse string array

reverse array in java using for loop

reverse an array without using another array in java

reverse array in java using collections

Reverse a string in java using ByteArray

Reverse a string in java using StringBuilder class reverse() method

Reverse a string in java using character array

Reverse a string in java using toCharArray() method

Reverse a string in java using ArrayList object – Collections.reverse() method

Reverse a string in java using for loop

how to reverse a string in java word by word

reverse a string in java without using reverse function

reverse a string in java using recursion

reverse a sentence word by word in java

reverse a number in java

java program to swap two numbers

swap two numbers in java using temporary variable