Java – Serialization
Java provides a mechanism, called object serialization where an object can be represented as a…
Java – Generics
It would be nice if we could write a single sort method that could sort…
Java – Collections Framework
Prior to Java 2, Java provided ad hoc classes such as Dictionary, Vector, Stack, and Properties to store and…
Java – Data Structures
The data structures provided by the Java utility package are very powerful and perform a…
Java – Packages
Packages are used in Java in order to prevent naming conflicts, to control access, to…
Java – Interfaces
An interface is a reference type in Java. It is similar to class. It is…
Java – Encapsulation
Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and…
Java – Abstraction
As per dictionary, abstraction is the quality of dealing with ideas rather than events. For example, when…
Java – Polymorphism
Polymorphism is the ability of an object to take on many forms. The most common…
Java – Overriding
In the previous chapter, we talked about superclasses and subclasses. If a class inherits a…