0 votes
189 views
in JAVA by (98.9k points)
edited

What is not the use of “this” keyword in Java?
a) Referring to the instance variable when a local variable has the same name
b) Passing itself to the method of the same class
c) Passing itself to another method
d) Calling another constructor in constructor chaining

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
Answer: b
Explanation: “this” is an important keyword in java. It helps to distinguish between local variable and variables passed in the method as parameters.

Related questions

0 votes
1 answer 2.8k views
0 votes
1 answer 140 views
0 votes
1 answer 309 views
0 votes
1 answer 111 views
asked Aug 9, 2022 in JAVA by Doubtly (98.9k points)
0 votes
0 answers 114 views
asked Aug 9, 2022 in JAVA by Doubtly (98.9k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

557 users

...