Descriptive Question

Quiz Guidelines

 

QID: 
52
Validated against: 
java8
Question: 

Predict the result:

public class NullOverloadCheck {

	static void myMethod(Float o)
	{
		System.out.println("Float");
	}
	
	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!!!