fork(1) download
  1. class A {
  2. public void foo(long l){
  3. System.out.println("Long");
  4. }
  5.  
  6. public void foo(double d){
  7. System.out.println("Double");
  8. }
  9. }
  10.  
  11. class Ideone
  12. {
  13. public static void main (String[] args) throws java.lang.Exception
  14. {
  15. A a = new A();
  16. a.foo(123);
  17. }
  18. }
Success #stdin #stdout 0.06s 32556KB
stdin
Standard input is empty
stdout
Long