Advertisement
DulcetAirman

receiver

Jan 6th, 2016
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. // Quiz: What is the output of this?
  2. public class SomeClass {
  3.  
  4.   void foo(SomeClass this) {
  5.     System.out.println("A");
  6.   }
  7.  
  8.   void foo(SomeClass that) {
  9.     System.out.println("B");
  10.   }
  11.  
  12.   public static void main(final String[] args) {
  13.     final SomeClass x = new SomeClass();
  14.     x.foo(x);
  15.   }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement