What is Java? Easy
Java is a high-level, object-oriented programming language developed by Sun Microsystems (now Oracle). It is platform-independent due to the JVM (Java Virtual Machine).
What are the main features of Java? Easy
Key features of Java include:
What is JVM? Easy
JVM (Java Virtual Machine) is responsible for executing Java bytecode. It provides platform independence and memory management.
What is JDK and JRE? Easy
JDK: Java Development Kit (compiler + tools)
JRE: Java Runtime Environment (JVM + libraries)
What is OOP? Easy
Object-Oriented Programming organizes code using objects and classes.
What is a class? Easy
A class is a blueprint for creating objects. It defines properties and behaviors.
What is an object? Easy
An object is an instance of a class containing state and behavior.
What is inheritance? Easy
Inheritance allows one class to acquire properties of another class using extends.
What is polymorphism? Easy
Polymorphism allows methods to behave differently based on context (method overloading & overriding).
What is encapsulation? Easy
Encapsulation wraps data and methods together using private variables and public getters/setters.
What is abstraction? Easy
Abstraction hides internal implementation details using abstract classes or interfaces.
What is method overloading? Easy
Same method name with different parameters in the same class.
What is method overriding? Easy
Subclass provides specific implementation of a method defined in parent class.
What is constructor? Easy
A constructor initializes object state and has same name as class.
What is static keyword? Easy
Static members belong to class rather than object.
What is final keyword? Easy
final prevents modification:
What is interface? Easy
An interface defines abstract methods that classes must implement.
What is abstract class? Easy
An abstract class may contain abstract and concrete methods.
What is String in Java? Easy
String is immutable and stored in String pool.
Difference between == and equals()? Easy
== compares references.
equals() compares content.
What is ArrayList? Easy
ArrayList is a dynamic array implementation of List interface.
What is HashMap? Easy
HashMap stores key-value pairs and does not maintain order.
What is exception? Easy
An exception is an event that disrupts program flow.
Checked vs Unchecked Exception? Easy
Checked exceptions are compile-time checked.
Unchecked exceptions are runtime exceptions.
What is try-catch block? Easy
Used to handle exceptions in Java.
What is multithreading? Medium
Multithreading allows concurrent execution of two or more threads.
Improves CPU utilization.
What is Thread class? Medium
Thread class enables creation of threads.
Runnable vs Thread? Medium
Runnable is preferred because Java supports single inheritance.
What is synchronization? Medium
Synchronization prevents race condition using synchronized keyword.
What is deadlock? Medium
Deadlock occurs when two threads wait for each other’s resources.
What is garbage collection? Medium
Automatic memory management by JVM.
What is heap and stack? Medium
Heap stores objects. Stack stores method calls and local variables.
What is Comparable? Medium
Comparable interface is used for sorting custom objects.
What is Comparator? Medium
Comparator defines custom sorting logic.
What is serialization? Medium
Serialization converts object into byte stream.
What is transient keyword? Medium
Transient prevents variable from being serialized.
What is volatile keyword? Medium
Volatile ensures variable visibility across threads.
What is Optional class? Medium
Optional avoids NullPointerException.
What is Stream API? Medium
Stream API processes collections functionally.
What is lambda expression? Medium
Lambda provides concise way to implement functional interface.
What is functional interface? Medium
Interface with single abstract method.
What is default method in interface? Medium
Default method provides implementation inside interface.
What is Enum? Medium
Enum defines fixed set of constants.
What is reflection? Medium
Reflection allows inspecting classes at runtime.
What is class loader? Medium
Loads class files into JVM.
What is Spring Framework? Medium
Spring is enterprise Java framework for dependency injection and web apps.
What is REST API? Medium
REST is architectural style for building APIs.
What is Hibernate? Medium
Hibernate is ORM framework for Java.
What is JDBC? Medium
JDBC connects Java with databases.
What is SOLID principle? Medium
SOLID principles improve software design and maintainability.
Explain JVM architecture in detail. Hard
JVM consists of:
What is Java Memory Model? Hard
Defines how threads interact through memory.
What is ConcurrentHashMap? Hard
Thread-safe version of HashMap.
What is ForkJoinPool? Hard
Framework for parallel execution using divide-and-conquer.
Explain double-checked locking. Hard
Optimized singleton implementation pattern.
What is immutability? Hard
Immutable objects cannot change after creation.
What is design pattern? Hard
Reusable solution to common design problems.
Explain Singleton pattern. Hard
Ensures only one instance of class exists.
What is Builder pattern? Hard
Separates construction of object from representation.
Explain Factory pattern. Hard
Factory pattern creates objects without exposing creation logic.
What is microservices architecture? Hard
Architecture style where application is built as collection of small services.
What is Docker in Java projects? Hard
Docker containers package Java app with dependencies.
Explain ThreadLocal. Hard
Provides thread-local variables.
What is CompletableFuture? Hard
Used for asynchronous programming in Java 8.
Explain Reactive Programming in Java. Hard
Asynchronous data stream processing using Project Reactor or RxJava.
What is JIT compiler? Hard
Just-In-Time compiler converts bytecode to native code for performance.
What is GraalVM? Hard
High-performance polyglot runtime for Java.
What is lock-free programming? Hard
Concurrency approach without explicit locks.
Explain distributed transactions. Hard
Transaction management across multiple services/databases.
How to scale Java application? Hard
Use load balancing, caching, clustering, containerization and microservices.
Join our live classes with expert instructors and hands-on projects.
Enroll NowCustomized Corporate Training Programs and Developing Skills For Project Success.
Subscibe to our newsletter and we will notify you about the newest updates on Edugators