1.

What is the output of this program?class box_Shape { int width; int height; int length; int volume; void volume(int heigth, int lenght, int width) { volume = width*height*length; } } public class Prameterized_method_Example { public static void main(String args[]) { box_Shape obj = new box_Shape(); obj.height = 5; obj.length = 6; obj.width = 10; obj.volume(5,6,10); System.out.println(obj.volume); } }

A. 100
B. 200
C. 300
D. 400
E. 500
Answer» D. 400


Discussion

No Comment Found

Related MCQs