What does the code output

Report a typo

Here are three overloaded methods:

public static void method(int i) { 
    System.out.println("int");
}
    
public static void method(long l) { 
    System.out.println("long");
}
    
public static void method(char c) { 
    System.out.println("char");
}

Here is an invocation:

method('a');

What does the code output? Enter a string.

Enter a short text
___

Create a free account to access the full topic