PRO192_-_SP_2024_-_FE_1629.webp
N

PRO192_-_SP_2024_-_FE_1629.webp

Answer (Choose 1 answer)
Which one statement is true about the following code?
1. String s1 = "abc" + "def":2. String s2 = new String(s1);
3. if (s1 == s2)
4.System.out.println("== succeeded");5. if (s1.equals(s2))
6.System.out.println(".equals() succeeded");
A. Lines 4 and 6 both execute.
B. Line 4 executes and line 6 does not.
C. Line 6 executes and line 4 does not.
D. Neither line 4 nor line 6 executes.

Exit (43

Thông tin

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

Image metadata

Filename
PRO192_-_SP_2024_-_FE_1629.webp
File size
66 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom