Here I’ve clubbed together questions that are commonly asked for beginner and mid level Java interviews.This will not only help you to revise the Java concepts, but to give just the right answer in order to nail the interview!! I’ve attempted to give as much in depth explanations as much as possible for every question. If something is still not clear to you, feel free to get in touch with me though the comments section or the links provided below!!
- Java Inheritance Interview Questions With Examples
- Difference between a local, instance and static variable in Java
- Difference between Comparator and Comparable
- What is the difference between a module and a package
- What is the difference between Iterator and SplitIterator
- Iterator and Enumeration – Differences Explained
- Java TreeSet and HashSet similarities and differences
- Hibernate Association Mappings with code samples
- Java 8 Method Reference operator explained
- Hibernate Caching Mechanisms Explained
- Lambda expressions in Java 8 explained with code samples
- Java 8 Stream API explained with code samples
- Compile time polymorphism vs Runtime polymorphism
- Why is Java Platform Independent
- Java 8 forEach loop explained with code samples
- How to sort a List on objects in Java using a Compator
- Collection Factory Methods in Java 9 with Code Samples
- Hibernate save vs saveOrUpdate
- Java 8 Functional Interface explained with code samples
- Java 8 Static Interface methods with code samples
- Java Autoboxing explained
- Java 8 Default Interface methods explained
- JPA vs Hibernate – An In-depth comparison
- What is Hibernate Criteria API
- NullPointerException explained
- ArrayList Vs LinkedList
- JDBC vs Hibernate
- Difference between save and persist in Hibernate
- Checked Vs Unchecked exceptions
- String vs StringBuffer vs StringBuilder
- How are Java Strings immutable
- What Are Java constructors?
- What are Iterators in Java?
- public static void main explained
- Java classes and objects explained
- Java prefix and postfix notation explained
- Java Path and Classpath explained in detail
- What is a marker interface is Java
- Java This Keyword Explained
- Difference between JDK, JRE and JVM
- Singleton class Explained
- Difference between Break and Continue statement
- Method Overloading Vs Method overridding
- System.out.println explained
- Static keyword explained
- Difference between an abstract class and interface in Java
- What is the final keyword in Java?
- Java Access specifiers explained
- What is the difference between a Set and List?
- Java Exception handling explained
- Object oriented principles in Java Explained in Short