Advertisement
Guest User

obscuring is not this!?

a guest
Jan 9th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. class Foo {
  2.     class a {
  3.  
  4.     }
  5.  
  6.     int x() {
  7.         int a = 0;
  8.         a obj = new a();
  9.         System.out.println(obj.getClass());
  10.         System.out.println(a); // 0
  11.         return 0;
  12.     }
  13. }
  14.  
  15.  
  16. public class MainClass {
  17.     public static void main(String[] args) {
  18.         new Foo().x();  // output: class qs.Foo$a
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement