Here are the most often questions asked Java interview questions for freshers and experienced:
1. Difference between JDK and JRE?
2. What is the Java Virtual Machine (JVM)?
3. What are the different types of memory areas allocated by JVM?
4. What is the JIT compiler?
5. How the Java platform is different compared to other platforms?
6. Why Java is 'write once and run anywhere' language?
7. How does ClassLoader work in Java?
8. Is the ‘main’ used for the main method is a keyword in Java?
9. Can we use the main method as public void static replacing public static void?
10. Suppose, we run a java class without passing any arguments. What will be the value of String array of arguments in the Main method?
11. Difference between byte and char data types?
If you are preparing for an interview, I would recommend this Java Interview Questions blog for most frequently asked questions in Java Interview.