Multiple choice

Which of the following is not true about method overriding in java?

  1. In method overriding, the super class and the subclass have a same method name with the same parameters type.

  2. In method overriding, the superclass and subclass have the same return type.

  3. Overriding is a form of runtime polymorphism in java.

  4. We can override the static methods in java.

  5. All of the above

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

Yes, all of the above are the true statements.