-
threads
BlockingQueue example
With this example we are going to demonstrate how to use a BlockingQueue. The steps of the example are described…
Read More » -
threads
Unbounded work queue example
This is an example of an unbounded work queue. The steps of creating and using an unbounded work queue are…
Read More » -
threads
Bounded work queue example
In this example we shall show you how to create a use a bounded work queue. To create and use…
Read More » -
threads
Sleep Thread
With this example we are going to demonstrate how to make a Thread sleep. In short, to make a Thread…
Read More » -
threads
Set Thread Name
This is an example of how to set a Thread‘s name. Setting a Thread’s name implies that you should: Get a…
Read More » -
threads
Current Thread Information
In this example we shall show you how to get the current Thread‘s information, such as id, name group and…
Read More » -
threads
New Thread with Runnable
With this example we are going to demonstrate how to create a Thread with a Runnable. We have created a…
Read More » -
class
Static clause initialization
This is an example of how to make a static clause initialization. In order to do so, we have created…
Read More » -
class
You cannot have static variables declared inside a method
In this example we shall show you the reason why you cannot have static variables declared inside a method. The steps…
Read More » -
class
Static fields inheritance
This is an example of static fields inheritance between two classes. The steps of the example are described below: We…
Read More »