Java – Collections Framework
Prior to Java 2, Java provided ad hoc classes such as Dictionary, Vector, Stack, and Properties to store and manipulate groups of objects. Although…
Browse our articles in publication order, with new stories added automatically.
Prior to Java 2, Java provided ad hoc classes such as Dictionary, Vector, Stack, and Properties to store and manipulate groups of objects. Although…
The data structures provided by the Java utility package are very powerful and perform a wide range of functions. These…
Packages are used in Java in order to prevent naming conflicts, to control access, to make searching/locating and usage of…
An interface is a reference type in Java. It is similar to class. It is a collection of abstract methods.…
Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction. Encapsulation in Java is…
As per dictionary, abstraction is the quality of dealing with ideas rather than events. For example, when you consider the case of…
Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP…
In the previous chapter, we talked about superclasses and subclasses. If a class inherits a method from its superclass, then…
Inheritance can be defined as the process where one class acquires the properties (methods and fields) of another. With the…
In this chapter, we will discuss inner classes of Java. Nested Classes In Java, just like methods, variables of a…
An exception (or exceptional event) is a problem that arises during the execution of a program. When an Exception occurs the normal…
The java.io package contains nearly every class you might ever need to perform input and output (I/O) in Java. All…