Advertisement
DulcetAirman

receiver

Jan 6th, 2016
139
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement