Multiple choice technology programming languages

A method is defined in a class as : void processUser(int i) { } If this method is overriden in a sub class,_

  1. the new method should return int

  2. the new method can return any type of values

  3. the argument list of new method should exactly match that of overriden method

  4. the return type of new method should nottch that of overriden method

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

When overriding a method in Java, the argument list (method signature) must exactly match the original method. The return type can be the same or a covariant type (subtype), but the parameter types, order, and number must remain identical for proper override behavior.