PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp
K

PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp

Multiple Choices
}
}
(Choose 1 answer)
public class Rand{
What will be the result when you attempt to compile this program?
public static void main(String argv[]){
int iRand;
iRand = Math.random();
System.out.println(iRand);
A. Compile time error referring to a cast problem
B. A random number between 1 and 10
C. A random number between 0 and 1
D. A compile time error about random being an unrecognised method

Thông tin

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

Share this media

Back
Bên trên Bottom