Explain the usage of this with constructors?



Explain the usage of this with constructors?..

Answer / Yogesh Kumar Bhatta

The 'this' keyword is used to refer to the current object in Java. It can be used within a constructor to call another constructor of the same class, helping in initializing objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the difference between Abstract Class and Interface

8 Answers   Amdocs,


why not override thread to make a runnable? : Java thread

1 Answers  


What function extracts specified characters from a string?

1 Answers  


What is the size of integer?

1 Answers  


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

1 Answers  


Why collection is called framework in java?

1 Answers  


What are the two ways you can synchronize a block of code?

5 Answers   Ericsson,


Why we use set in java?

1 Answers  


Does set allows null in java?

1 Answers  


Can a final variable be null?

1 Answers  


What is navigable map in java?

1 Answers  


Does java set allow duplicates?

1 Answers  


Categories