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: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!