Multiple choice technology

Given 10. class Foo { 11. static void alpha() { /* more code here / } 12. void beta() { / more code here */ } 13. } Which two statements are true? (Choose two.)

  1. Foo.beta() is a valid invocation of beta().

  2. Foo.alpha() is a valid invocation of alpha().

  3. Method beta() can directly call method alpha().

  4. Method alpha() can directly call method beta().

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

Static methods like alpha() are called on the class name (Foo.alpha()), not instances. Instance methods like beta() can call static methods directly, but static methods cannot call instance methods without an object reference.