Calling more than one constructor of same class with SINGLE instance in java…

Hi Friends

Can we call more than one constructor of same class with single instance ?

Yes, why not ? use this keyword…

Here is the demo… Continue reading

Advertisements

Access instance members without any reference variable in java

Hi friends,

As we know we need reference variable to access instance members. Today we are going to learn that how we can access instance members without any reference variable.

Note : we can access only one instance member without reference variable and only once.

Please check following code… Continue reading