Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (45k points)

A) Passing itself to another method

B) Calling another constructor in constructor chaining

C) Referring to the instance variable when local variable has the same name

D) Passing itself to method of the same class

E) None of these

2 Answers

0 votes
by (99k points)

The correct answer to the question “What is not the use of 'this' keyword in Java” is, option (d). Passing itself to the method of the same class. This is one of the most important keywords in Java and is used to distinguish between local variables and variables that are passed in the methods as parameters. Wishing to learn Java and enhancing job opportunities? Check out the Java certification course from Intellipaat. Also, watch the following video on What is Java to get a better insight.

0 votes
by (140 points)

Referring to the instance variable when local variable has the same name

Related questions

0 votes
1 answer
asked Mar 29, 2021 in Java by dev_sk2311 (45k points)
0 votes
1 answer
0 votes
1 answer
asked Jul 16, 2019 in Java by Anvi (10.2k points)

Browse Categories

...