PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp
K

PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp

Multiple Choices
Answer (Choose 1 answer)
What will be the output of the following code?
1. public class integerEquals 2. {
3.public static void main(String args[])
4.{
5.Integer a= new Integer(0);
6.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
Kurourushi89
Ngày thêm
Lượt xem
5,724
Lượt bình luận
23
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom