Question #316228

Predict the output of the following program?


class Test {


protected int x, y;


}


class Main {


public static void main(String args[]) {


Test t = new Test();


System.out.println(t.x + " " + t.y);


}


}

Expert's answer

The answer to your question is provided below

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS