-
class
Final arguments to function – Part 2
In this example we shall show you how to use final arguments to a function. To use final arguments to a…
Read More » -
class
Final class fields example
This is an example of how to use final fields in a class, so as to understand the difference between…
Read More » -
class
Full Initialization process
This is an example of a full initialization process in a class. To initialize a class and its fields we have…
Read More » -
class
Access outer variables example
This is an example of how to access outer variables in a class. The example is described in short: We have…
Read More » -
class
Polymorphism and constructors example
With this example we are going to demonstrate the polymorphism of a class and the constructors behaviour. In short, to see…
Read More » -
class
Exceptions in Constructors
In this example we shall show you how to handle exceptions in constructors. To handle exceptions in constructors we have performed…
Read More » -
class
Generic deep copy
This is an example of how to make a generic copy of a class, using Java reflection. In order to…
Read More » -
class
Inheritance constructor calls example
With this example we are going to demonstrate how to inherit constructor calls from a super class to a sub…
Read More » -
class
Default constructor calls superclass constructor
In this example we shall show you how to call the superclass constructor in a default class constructor. An easy…
Read More » -
class
Deep Copy example – Part 2
This is an example of how to create a deep copy of a class. In order to create a deep copy…
Read More »