Core Java Interview Questions 100
Core Java Interview Questions 100
Garbage collection is the process by which Java programs perform automatic memory management. The
Annotations provide metadata for the Java code. They are used for information that can be processed at
HashMap is non-synchronized and allows one null key and multiple null values. Hashtable is synchronized
Introduced in Java 8, the Stream API provides a functional approach to processing collections of objects. It
ArrayList is based on a dynamic array, while LinkedList is based on a doubly linked list. ArrayList is faster for
A functional interface has exactly one abstract method. Examples include Runnable, Callable, and
A lambda expression is a concise way to represent an anonymous function. It is used primarily to implement
Page 1
Core Java Interview Questions and Answers
Serializable is a marker interface used for default serialization, whereas Externalizable gives the programmer
full control over the serialization process by implementing writeExternal() and readExternal() methods.
29. What is the difference between shallow copy and deep copy?
A shallow copy copies the references to the objects, while a deep copy creates a new copy of the object
The Java Collections Framework is a set of classes and interfaces that implement commonly reusable
Page 2
Core Java Interview Questions and Answers
Page 3
Core Java Interview Questions and Answers
Page 4
Core Java Interview Questions and Answers
Page 5
Core Java Interview Questions and Answers
Page 6
Core Java Interview Questions and Answers
Page 7
Core Java Interview Questions and Answers
Page 8
Core Java Interview Questions and Answers
Page 9