public class Test { public static void hello(Collection x) { System.out.println("Collection"); } public static void main(String[] args) { Test t = new Testing(); List x = null; t.hello(x); } } class Testing extends Test { public static void hello(List x) { System.out.println("List"); } }
public static void hello(Collection x) {
System.out.println("Collection");
}
public static void main(String[] args) {
Test t = new Testing();
List x = null;
t.hello(x);
class Testing extends Test {
public static void hello(List x) {
System.out.println("List");
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.