OD
(Choose 1 answer)
class Box
{ int width;
What will be the output of the following Java program?
A. 60
B. 12
int height;
int length;
int volume;
C. Compiler error
public Box(int width, int height, int length){}
void volume(int height, int length, int width)
D. 25
}
{ } volume = width*height*length;
class Using
{
}
}
public static void main(String args[])
Box obj = new Box(3,4,5);
obj.height = 1;
obj.length = 5;obj.width = 5;
obj.volume(2,2,3);
System.out.println(obj.volume);
Exit 23