Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Quiz: What is the output of this?
- public class SomeClass {
- void foo(SomeClass this) {
- System.out.println("A");
- }
- void foo(SomeClass that) {
- System.out.println("B");
- }
- public static void main(final String[] args) {
- final SomeClass x = new SomeClass();
- x.foo(x);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement