-
class
Get Classpath example
With this example we are going to demonstrate how to get the classpath using the System class. The System class…
Read More » -
class
A wrapper class
This is an example of how to create a wrapper class. A wrapper class is defined as a class in…
Read More » -
class
How the class loader works
In this example we shall show you how the class loader works. To see how the class loader works we have…
Read More » -
class
Immutable object example
With this example we are going to demonstrate how to create and use an immutable object. Immutable objects are objects…
Read More » -
class
Modify Immutable Objects
This is an example of how to modify immutable objects. Immutable objects are objects whose state cannot change after construction. We…
Read More » -
class
Reference Objects example
In this example we shall show you how to create and use Reference Objects. A reference object encapsulates a reference…
Read More » -
class
Passing an object to a method example
With this example we are going to demonstrate how to pass an object to a method. In short, we have…
Read More » -
class
Anonymous inner class – Part 2
This is an example of how to use an anonymous inner class. We have created a class, TalkingClock, that is a…
Read More » -
class
Run time Type Identification example
In this example we shall show you how to check a type identification in run time. To check a type identification…
Read More » -
class
Class casting example
With this example we are going to demonstrate how to cast an object of a class to another class. In…
Read More »