What is "this" keyword used for ?
Questions
Search
List By Company
List By Topic
Legacy
Tests
Repository
DashBoard
Java
Java 8
Java 7
Java Abbreviations
OCJP / SCJP
Class List
New in Java 8
Java Exceptions
Spring Exceptions
Java Enums
Java 8 Lambda
Java 8 java.time
Big Data
Best Of Java
Discussion
Search
Subscribe
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
Search
Submit Question
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
Correction
Duplicate of Another Question
Company where this question was Asked
Suggestion
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>();
If arrays cannot be resized , Why is this code valid
String[] strArray = new String[2];
strArray = new String[5];
Difference Between this() and super() ?
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: