PRO192_-_S6_-_FA_2023_-_FE_1038.webp
V

PRO192_-_S6_-_FA_2023_-_FE_1038.webp

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

Thông tin

Category
PRO192
Thêm bởi
vanthang97
Ngày thêm
Lượt xem
4,268
Lượt bình luận
23
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_S6_-_FA_2023_-_FE_1038.webp
File size
56.1 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom