Page 1 of 1

Given the following declarations and initialisations, select the two correct options below. Select one or more: The resu

Posted: Fri Jun 10, 2022 11:58 am
by correctanswer
Given the following declarations and initialisations, select
the two correct options below.
Select one or more:
The result of executing line 1
is true because frog1 and frog2 both
reference strings consisting of the four
characters F, R, O and G.
The result of executing line 2
is true because frog and frog1 both
reference the same string consisting of the four
characters F, R, O and G.
The result of executing line 3
is true because frog and frog1 both
reference the same string consisting of the four
characters F, R, O and G.
The result of executing line 4
is true because frog1 and frog2 both
reference strings consisting of the four
characters F, R, O and G.
The result of executing line 5
is true because frog1 and frog3 both
reference the same String object consisting of the four
characters F, R, O and G.