PRO192_-_C2_-_FE_-_SU_2023_398.webp
T

PRO192_-_C2_-_FE_-_SU_2023_398.webp

(Choose 1 answer)
What will be the output of the following Java program?
}
}
A. 25
class Box
{
int width;
int height;
int length;
int volume;
public Box(int width, int height, int length){}
void volume(int height, int length, int width)
{
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);
B. 12
IC 60
Exit 32

Thông tin

Category
PRO192
Thêm bởi
Thái Dương1
Ngày thêm
Lượt xem
2,609
Lượt bình luận
20
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_C2_-_FE_-_SU_2023_398.webp
File size
54.5 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom