What is "this" keyword used for ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. What is "this" keyword used for ?
Ans. Used to represent an instance of the class in which it appears.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   oops   java keywords   this   basic interview question      basic        frequent


Related Questions

  What are the common uses of "this" keyword in java ?
  Can we use both "this()" and "super()" in a constructor ?
  Will this code give error if i try to add two heterogeneous elements in the arraylist. ? and Why ?
 Is this a valid initialization ? Explain.

Collection<Collection> collection = new LinkedList<LinkedList>();
  Difference Between this() and super() ?
 If arrays cannot be resized , Why is this code valid

String[] strArray = new String[2];
strArray = new String[5];
 Which region is the latest and most popular in AWS ? What are the advantages and disadvantages of using this region ?
  Can we compose the Parent Class object like this ?
  Why can't we use this in static context ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: