Question: What is true about the given assignments below? String s 1 = new String ( hello ) ; String s 2 = new
What is true about the given assignments below?
String s new Stringhello;
String s new Stringhello;
boolean flag ss;
A value of flag is true
B value of ssubstring is same as value of ssubstring
C A and B
D Any of the strings can be changed by using the replace methods of the String class
E None of the above
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
