PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
T

PRO192_-_SP_2024_-_Block_5_-_RE_1965.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;
}
}
Α. 7.2 5.2 3.2
Β. 7.2 5.2 5.2
C. 7.2 7.2 7.2
D. 7.2 7.2 5.2
Ε. 5.2 7.2 5.2

Thông tin

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

Image metadata

Filename
PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
File size
199.5 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom