Which of the following statements are true?
1) A method cannot be overloaded to be less public in a child class
2) To be overridden a method only needs the same name and parameter types
3) To be overridden a method must have the same name, parameter and return types
4) An overridden method must have the same name, parameter names and parameter types
As of
Java 1.4 the Answer is 3 (To be overridden a method must have the same name, parameter and return types). But in 1.5 the return type may be a different (Ex: SubClass return type ...) So Can I know the which answer i need to go?