Difference between HashMap and HashTable
Both provide key-value access to data. The Hashtable is one of the original collection classes in Java. HashMap is part of the new Collections Framework, added...
Explain garbage collection?
Garbage collection is one of the most important feature of Java. Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects (value is...
What do you understand by Synchronization
Synchronization is a process of controlling the access of shared resources by
the multiple threads in such a manner that only one thread can access...
What is Object Serialization?
Serialization is a way of flattening, pickling, sizzling,
serializing, or freeze-drying Objects so that they can be stored on
disk, and later read back and reconstituted, with...
What is Polymorphism?
Polymorphism means "any forms."
In OOPS, it refers to the capability of objects to react differently to the same method. Polymorphism can be implemented in the Java language...
What is the difference between JDK and JRE
The "JDK" is the Java Development Kit. i.e., the JDK is bundle of software that you can use to develop Java based software....