Java
Export PDF (0)
Flagged
Completed
Export PDF (0)
0%
Coding
Theory
Explain
public static void main(String args[])
in Java.
Junior
Is it possible to execute a program without
main()
method?
Junior
Is Java a platform independent language?
Junior
Is Java a pure object oriented language?
Junior
Name some of the features of the Java Programming language?
Junior
Name some ways Java is different from C++?
Junior
What are the default values assigned to variables and instances in Java?
Junior
What are the differences between Heap and Stack Memory in Java?
Junior
What is an IO stream?
Junior
What is the difference between a
String
,
StringBuffer
, and a
StringBuilder
?
Junior
What is the difference between an instance and local variable in Java?
Junior
What is the difference between
equals()
method and equality operator (
==
) in Java?
Junior
Why and how does Java not use pointers?
Junior
How do cookies work in Servlets?
Mid
What is Java String Pool?
Mid
Can a single try block have multiple catch blocks in a Java program?
Mid
Can a static method be overloaded in Java?
Mid
Differentiate between constructors and methods in Java?
Mid
Explain abstraction in Java.
Mid
Explain encapsulation in Java.
Mid
Explain inheritance in Java.
Mid
Explain polymorphism in Java.
Mid
Explain the concept of constructor overloading.
Mid
Explain the concept of Java Generics.
Mid
Explain the difference between a
HashSet
and a
TreeSet
in Java.
Mid
Explain the difference between a shallow copy and a deep copy of an object in Java.
Mid
Explain the difference between
final
,
finally
, and
finalize
in Java.
Mid
Explain what JDK, JRE and JVM are in Java?
Mid
How does an exception propagate through the code?
Mid
How does the
ArrayList
grow dynamically and how is this implemented internally?
Mid
How does the
new
operator differ from the
newInstance()
method in Java?
Mid
Is it possible to execute code before the main method runs?
Mid
Is it possible to make the main thread a daemon thread?
Mid
List the steps to connect to a database in Java?
Mid
Name the main OOP concepts in Java?
Mid
What are access modifiers in Java?
Mid
What are the advantages of Packages in Java?
Mid
What are the differences between
Arrays
and
ArrayLists
in Java?
Mid
What are the differences between HashMap and HashTable in Java?
Mid
What are the differences between interfaces and abstract classes in Java?
Mid
What are the different types of inheritance in Java?
Mid
What are the main components of the JDBC API?
Mid
What is a
Comparator
in Java?
Mid
What is a Servlet?
Mid
What is a singleton class in Java and how is it implemented?
Mid
What is Aggregation in Java?
Mid
What is an enum in Java?
Mid
What is an exception in Java?
Mid
What is classloader?
Mid
What is composition in Java?
Mid
What is covariant return type?
Mid
What is
final
keyword in Java?
Mid
What is Hibernate?
Mid
What is JDBC Driver?
Mid
What is JIT compiler in Java?
Mid
What is method overloading?
Mid
What is method overriding?
Mid
What is Object Cloning in Java?
Mid
What is runtime polymorphism?
Mid
What is the 'IS-A' relationship in Java OOP?
Mid
What is the difference between a checked and unchecked exception?
Mid
What is the difference between a servlet and a JSP (JavaServer Pages)?
Mid
What is the difference between aggregation and composition?
Mid
What is the difference between an error and an exception in Java?
Mid
What is the difference between
sleep()
and
wait()
methods in Java?
Mid
What is the difference between the
throw
and
throws
in Java?
Mid
What is the difference between
this()
and
super()
in Java?
Mid
What is the life-cycle of a Servlet?
Mid
What is the purpose of the
volatile
keyword in Java?
Mid
Why is the main method static in Java?
Mid
What is a marker interface?
Senior
Can a program exceed its memory limit even with a garbage collector present in Java?
Senior
Define Late Binding.
Senior
Describe the Java thread lifecycle.
Senior
Explain dependency injection in Java.
Senior
Explain difference between Comparable and Comparator in Java?
Senior
What are the differences between static and non-static methods in Java?
Senior
What are the different methods to use threads in Java?
Senior
What are the different types of Thread Priorities in Java?
Senior
What does the term Double Brace Initialization mean in Java?
Senior
What is a Java Lambda Expression?
Senior
What is a memory leak and how can it be caused?
Senior
What is a Thread in Java?
Senior
What is an
iterator
in Java?
Senior
What is garbage collection?
Senior
What is multithreading?
Senior
What is the Daemon Thread?
Senior
What is the difference between
>>
and
>>>
operators in Java?
Senior
What is the difference between static methods, static variables, and static classes in Java?
Senior
What part of memory is cleaned in the garbage collection process in Java?
Senior
When does an object in Java become eligible for garbage collection?
Senior
Why are string immutable in Java?
Senior
Top 100 Java Interview Questions And Answers 2025 | TechPrep