V
Q. What will be the output of the following Java 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.getSuperclass()); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is the output of the Java code snippet?
Q. Which of these class have only one field?
Q. What is the numerical range of a char data type in Java?
Q. The concept of derived classes is involved in _________.
Q. What is true about a break?
Q. What will be the output of the following program?
Discusssion
Login to discuss.