1.

What is the output of this program? class X { int a; double b; } class Y extends X { int c; } class Output { public static void main(String args[]) { X a = new X(); Y b = new Y(); Class obj; obj = b.getClass(); System.out.print(obj.isLocalClass()); } }

A. 0
B. 1
C. True
D. False
Answer» E.


Discussion

No Comment Found