fork download
  1.  
  2. class Program {
  3. public static void main(String[] args) throws Exception {
  4. f(3);
  5. f('a');
  6. f('a' + 1);
  7. }
  8.  
  9. static void f(int i) {
  10. System.out.printf("int\n");
  11. }
  12.  
  13. static void f(char c) {
  14. System.out.printf("char\n");
  15. }
  16. }
  17.  
  18.  
  19.  
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
int
char
int