Multiple choice technology architecture

Which of the following statements are true?

  1. Methods cannot be overridden to be more private

  2. static methods cannot be overloaded

  3. private methods cannot be overloaded

  4. An overloaded method cannot throw exceptions not checked in the base class

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

Java enforces that overriding methods cannot be more restrictive than the method they override. This preserves the Liskov Substitution Principle - a subclass must be usable wherever its superclass is expected. Therefore, you cannot override a public method as private or protected. Static methods CAN be overloaded (B is false). Private methods CAN be overloaded within the same class (C is false). Overloaded methods (not overriding) can throw any exceptions regardless of the base class (D is false - it describes overriding, not overloading).