fork download
  1.  
  2. public class Main
  3. {
  4. public static class B
  5. {
  6. public void F() {
  7. F(0d);
  8. }
  9.  
  10. public void F(double d) {
  11. F();
  12. }
  13. }
  14.  
  15. public static class C extends B
  16. {
  17. public void F() {
  18. System.out.println("F()");
  19. }
  20. }
  21.  
  22. public static class D extends B
  23. {
  24. public void F(double d) {
  25. System.out.println("F(double)");
  26. }
  27. }
  28.  
  29. // arguments are passed using the text field below this editor
  30. public static void main(String[] args)
  31. {
  32. C c = new C();
  33. c.F();
  34. c.F(1d);
  35.  
  36. D d = new D();
  37. d.F();
  38. d.F(1d);
  39. }
  40. }
  41.  
Success #stdin #stdout 0.04s 711168KB
stdin
Standard input is empty
stdout
F()
F()
F(double)
F(double)