Descriptive Question

Quiz Guidelines

 

QID: 
51
Validated against: 
java8
Question: 

Find the result:

public class NullOverloadCheck {

	static void myMethod(Object o)
	{
		System.out.println("Object");
	}
	
	static void myMethod(Integer i){
		
		System.out.println("Integer");
	}
	
	public static void main(String[] args)
	{
		myMethod(null);
	}
	
}

 

Q&A Set: