Core Java
-
Shallow Copy example
In this example we shall show you how to create a shallow copy of a class. To create a shallow copy…
Read More » -
Deep Copy example
With this example we are going to demonstrate how to create a deep copy of a class. In short, to…
Read More » -
Clonable Object example
With this example we are going to demonstrate how to create a cloneable object of a class. In short, to…
Read More » -
Implementing Cloneable interface
In this example we shall show you how to implement the Cloneable interface. A class implements the Cloneable interface to…
Read More » -
Clone class example
This is an example of how to create a clone class of a class. We have created Employee class to…
Read More » -
Find a file in classpath
In this example we shall show you how to find a file in the classpath. To find a file in the…
Read More » -
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 » -
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 » -
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 » -
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 »