Explain the use of ‘this’ keyword in Java?



Explain the use of ‘this’ keyword in Java?..

Answer / hrindows@gmail.com

In Java, ‘this’ keyword represents a specific reference on the current object. There are multiple uses for this keyword for referring to the current class properties from a variable, constructors, methods, and more. You can also pass this as an argument within constructors or methods. You can also fetch this as a return value from the current class instance. You can also refer to this as a static context.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What is difference between .net and .net core?

0 Answers  


What is the microsoft .net?

0 Answers  


How do you give a Windows service specific permissions?

1 Answers  


How do you define the lease of the object?

1 Answers  


Describe session handling in a webform, how does it work and what are the limitations?

0 Answers  


What are the contents of assembly?

4 Answers   ABC, Ksb,


Explain .NET architecture?

0 Answers   TCS,


i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?

0 Answers  


Explain what are an object and a class?

0 Answers  


How does you handle this COM components developed in other programming languages in .NET?

1 Answers   Satyam,


Difference between Panel and GroupBox classes?

3 Answers  


How to implement datagrid in.net? How would you make a combo-box appear in one column of a datagrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for datagrid methods. What is the access specifier used for that methods in the code behind file and why?

0 Answers  


Categories