Q125
What will be the output of the following Java program? class box int width; int height; int length; class mainclass public static void main(String args[]) box obj = new box(); obj.width = 10; obj.height = 2; obj.length = 10; int y = obj.width * obj.height * obj.length; System.out.print(y);
A.
12
B.
200
AnswerC.
400
D.
100
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board