Java Classes Question:

This can be used inside any method to refer to the current object
A) True
B) False

Java Classes Interview Question
Java Classes Interview Question

Answer:

Answer is False and i got it wrong inspite of being correct!!

Explanation:

this cannot be used within a static method. It can be used only within non-static methods.So the question asks whether it can be used inside any method......


Previous QuestionNext Question
The type of data returned by a method need not be compatible with the return type specified by the method

A) True
B) False
In System.out.println() explain it.My doubt, we call static method with Class name but here what is "out"?