1.

Which of these cannot be declared static?(a) class(b) object(c) variable(d) method

Answer» Right choice is (b) object

Easy explanation: static statements are run as soon as class containing then is loaded, prior to any object declaration.


Discussion

No Comment Found

Related InterviewSolutions