core java
-
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 » -
class
Anonymous inner class
This is an example of how to use an anonymous inner class inside a class. In order to use an…
Read More » -
class
Anonymous class
In this example we shall show you how to use an anonymous class. To use an anonymous class we are using…
Read More » -
class
Abstract class example
With this example we are going to demonstrate how to create and use an abstract class. In short, we have…
Read More » -
class
Use the keyword this to call a constructor – Part 2
This is an example of how to use the keyword this to call a constructor of a class. Within an…
Read More » -
class
Use the keyword this to call a constructor
In this example we shall show you how to use the keyword this to call a constructor in a class.…
Read More » -
class
Simple use of the keyword this
With this example we are going to demonstrate how to use the keyword this. Within an instance method or a…
Read More »