1.

What is the output of this program?

class box_Shape
{
int width;
int height;
int length;
}
public class mainclass
{
public static void main(String args[])
{
box_Shape obj = new box_Shape();
obj.width = 12;
obj.height = 4;
obj.length = 15;
int p = obj.width * obj.height * obj.length;
System.out.print(p);
}
}

A. 420
B. 520
C. 620
D. 720
E. 820
Answer» E. 820


Discussion

No Comment Found

Related MCQs