PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp
K

PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp

Multiple Choices
(Choose 1 answer)
Integer i = null;
What does the following code do?
if (i!= null & i.intValue() == 5)
System.out.println("Value is 5");
A. Prints "Value is 5".
B. Throws an exception.
C. Compile error
D. Prints nothing

  • Like
Reactions: trump

Thông tin

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

Share this media

Back
Bên trên Bottom