Question: Given the declaration String s 1 = James Gosling ; String s 2 = James Gosling ; which of the following statements is true? a

Given the declaration
String s1=James Gosling;
String s2=James Gosling;
which of the following statements is true?
a.
s1 and s2 are aliases of each other
b.
s1== s2 is true
c.
s1< s2 because capital letters come before lowercase in the Unicode character set
d.
s1.equals(s2) is true
e.
s1 and s2 are the same because they have the same number of characters

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!