Category Java

Thread Class in Java | Thread Methods in Java

Java Thread Class and its methods

In Java, Thread class contains several constructors for creating threads to perform various tasks as well as methods for controlling threads. It is a predefined class declared in java.lang default package. Each thread in Java is created and controlled by a…

Types of Classes in Java

In this tutorial, we will learn different types of classes in Java with examples. We know Java is one of the most popular programming languages that provides a robust object-oriented programming (OOP) model. This model helps you write programs using…

Dynamic Method Dispatch in Java

Dynamic method dispatch in Java

In Java, dynamic method dispatch is a technique in which an object refers to superclass but at runtime, the object is constructed for subclass. In other words, it is a technique in which a superclass reference variable refers to a…