PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
T

PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp

(Choose 1 answer)
What will be the output of the following code?
1. public class integerEquals
2. {
3.
public static void main (String args[])
{
456 6.
Integer a= new Integer(0);
Integer b= new Integer(0);
7.System.out.println(a==b);
8.9. } }
A. The compiler will show an error at line 7
B. The program compiles and prints true
C. The program compiles and prints false
D. The program compiles but causes a runtime exception at line 7

Thông tin

Category
PRO192
Thêm bởi
thanhhoa88
Ngày thêm
Lượt xem
5,247
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
201.6 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom