I have been posting java interview programs on various topics such as Binary tree, LinkedList , String, Number, ArrayList, HashMap etc. So I am consolidating list of java interview programs to create an index post. I will keep adding links to this post whenever I add any new program. These are frequently asked java programs in interview. You can also go through top 50 java interview questions for interview questions.
Table of Contents
Java interview programs
Java collections APIs provides lots of inbuilt classes and interfaces to handle collections of objects. Here is list of most asked java interview programs on Collections.
String is most used data structure in java. There are lot of java interview programs on String which can be asked in interview.
There are many java tricky interview programs that can be asked in interview.
You should practice these java interview programs on array.
It is one of the most used data structure. In singly linked list, Node has data and pointer to next node. It does not have pointer to the previous node. Last node ‘s next points to null, so you can iterate over linked list by using this condition.
A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child. Here is list of Java interview programs asked on binary tree.