LPU_Java_Unit 2_Lecture 13_MCQ_this keyword_RB
1. In Java, this keyword can be used to return the current class instance from which method?
Answer:
Instance methods
2. In Java, where can you use this keyword?
Answer:
Inside both instance methods and constructors
3. What is an initializer block in Java?
Answer:
A block of code executed before constructors.