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 are nullable types in .NET

0 Answers   TryTechnicals Pvt Ltd,


Why inheritance is important?

0 Answers  


What are The Main Difference Between Client-server Based Applications and Web Based Applications

1 Answers   CTC,


How many languages .NET is supporting now?

38 Answers   Dreamtech, IBS, Microsoft, Polaris, RDT, Softcon, Viscus Infotech,


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 the difference between the while and for loop. Provide a .net syntax for both loops?

0 Answers  


differance between checkbox and rediobutton in vb.net?

2 Answers  


How will you load an assembly which is not referenced by current assembly?

0 Answers  


Explain what is the difference between a class and an object, and how do these terms relate to each other?

0 Answers  


What is Entity Relationship Model in .NET?

0 Answers   Viscus Infotech,


What is use of ContextUtil class?

1 Answers  


diff between forms authentication and windows authentication?

11 Answers  


Categories