Home » JAVA Programming » Arrays » Question
  1. Which of these cannot be declared static?
    1. variable
    2. method
    3. class
    4. object
    5. None of these
Correct Option: D

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



Your comments will be displayed only after manual approval.