Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo {
- class a {
- }
- int x() {
- int a = 0;
- a obj = new a();
- System.out.println(obj.getClass());
- System.out.println(a); // 0
- return 0;
- }
- }
- public class MainClass {
- public static void main(String[] args) {
- new Foo().x(); // output: class qs.Foo$a
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement