dinesh Archive

Creating a thread in Java

In Java, an object of the Thread class can represent a thread. Thread can be implemented through any one of two ways: Extending the java.lang.Thread Class Implementing the java.lang.Runnable Interface Extending the java.lang.Thread Class For …

Multithreading in Java

In this article you can learn the basic steps of creating a thread; this article provides two ways for creating your own thread in Java. Multithreading is a process of executing multiple threads simultaneously. A …

Nested Interface in Java

A nested interface is just a regular interface defined inside another class or interface. They are actually defined inside the body of the parent class, not only in the same file. The feature is useful …

static nested classes in java

A nested class that is declared static is called a static nested class. Memory to the objects of any static nested classes are allocated independently of any particular outer class object. A static nested class …