Multiple choice technology programming languages

Which of the following is/are correct about Static method ?

  1. cannot be instantiated

  2. can be called from non static

  3. can be instantiated

  4. 1 & 2

  5. 2 & 3

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Static methods belong to the class itself, not to instances of the class. Statement 1 is correct: static methods cannot be instantiated with 'new' - you don't create objects to use them. Statement 2 is also correct: static methods can be called from non-static context (instance methods) using the class name. Statement 3 is false: you instantiate classes/objects, not methods. Therefore option D (1 & 2) is correct.