-
threads
Safe collection iteration example
In this example we shall show you how to obtain a safe Collection iteration. We are using the List implementation…
Read More » -
threads
List copy example
This is an example of how to make a safe List copy. Making a safe List copy implies that you…
Read More » -
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
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
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
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
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
You cannot override a private or a private final method
This is an example explaining why you cannot override a private or a private final method. The example is described in…
Read More » -
class
Use inner class for callbacks
With this example we are going to demonstrate how to use inner class for callbacks to a class. The example…
Read More » -
class
Anonymous inner class constructor
This is an example of how to use an anonymous inner class. We have set an example following the above…
Read More »