Encapsulation :Nested classes increase encapsulation. Let say there are two top-level classes, Foo and Bar...
An Inner class in Java is non-static class. It is a type of Nested class that is defined in another class but not...
It is a behavioral design pattern. We can use it to create an outline for an algorithm or a complex operation...
Some of the main uses of Singleton design pattern in Java are as follows...
State design pattern is a behavioral design pattern that is use for defining the state machine for an object. Each state of...
Strategy pattern is very useful for implementing a family of algorithms. It is a behavioral design pattern...
We can use import tag to import a Java file in JSP code. Once a file is imported, it can be used by JSP code...
The Thread-safe classes in Java Collections framework are...
Main differences between Collection and Collections are...
Main differences between a List and a Set are...
Main differences between Comparable and Comparator are...
The equals() method in Object class is used to check whether two objects are same or not. If we want a custom implementation we can override this method...
Object class in Java has hashCode() method. This method returns a hash code value, which is an integer...
Iterator and ListIterator are two interfaces in Java to traverse data structures. The differences between these two are...
Both Iterator and Enumeration are interfaces in Java to access Data Structures. The main differences between these are...
Main differences between ArrayList and LinkedList data structures are...
The main difference between a HashSet and a HashMap are...
The Dictionary class in Java is used to store key-value pairs. Any non-null object can be used for key or value. But we cannot insert a null key or null object in Dictionary...
Main differences between a Set and a Map in Java are...
A Properties file in Java is a list of key-value pairs that can be parsed by java.util.Properties class...