What is the result?


What is the result?
A. C B A
B. C
C. A B C
D. Compilation fails at line n1 and line n2

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “What is the result?

  1. class A {
    public A() {
    System.out.print(“A “);

    class B extends A {
    public B() {
    System.out.print(“B “);

    class Test extends B {

    public Test() {
    System.out.print(“C “);

    public static void main(String[] args) {
    Test c = new Test();

    A B C

Leave a Reply

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.