1.this always will points to
Current class object
Super class object
Wrong
Correct
This always points to current class object which is under execution
2.We can use this in static methods?
True
False
Wrong
Correct
No we can not use this in static methods. if we try to use compile time error will come:Cannot use this in a static context
3.Can we call static methods using this from non static methods
Yes
No
Wrong
Correct
We can call static methods using this from non static methods but it is not recommended : The static method should be accessed in a static way.
4.We can return this from a method as return type
True
False
Wrong
Correct
Yes We can return this as current class object.
No comments