

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this 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 |
C. | 400 |
D. | 100 |
Answer» C. 400 | |