PRO192_-_SU_2023_-_Block_5_-_2_754.webp
Minh Đức1

PRO192_-_SU_2023_-_Block_5_-_2_754.webp

(Choose 1 answer)
What is the output when the following program is run?
public class Main
{public static void main(String args[])
{Decrementer t = new Decrementer();
double x = 7.2;
System.out.print(x + " ");
t.decre(x);
System.out.print(x +
t.decre(x);
"");
System.out.println(x);
class Decrementer
{public void decre(double x)
{x = x - 2
}
}
A. 7.2 5.2 3.2
B. 7.2 5.2 5.2
w
Finish
E 47

Thông tin

Category
PRO192
Thêm bởi
Minh Đức1
Ngày thêm
Lượt xem
2,597
Lượt bình luận
13
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_SU_2023_-_Block_5_-_2_754.webp
File size
45.4 KB
Dimensions
1286px x 546px

Share this media

Back
Bên trên Bottom