Core Java
-
Comparing File objects using hashcode example
This is an example of how to compare File objects using the hashcode. Each class in Java inherits hashCode() method…
Read More » -
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 » -
Final class example
With this example we are going to demonstrate how to use a final class. In short, to use a final…
Read More » -
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 » -
Final arguments to function
In this example we shall show you how to use final arguments to a function. To use final arguments to a…
Read More » -
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 » -
Static value initialization
With this example we are going to demonstrate how to make static values initialization in classes. In short, to make…
Read More » -
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 » -
Null safe equals method
In this example we shall show you how to use a null safe equals method to compare objects. To use a…
Read More » -
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 »