Question: in java Suppose that s 1 and s 2 are two strings. Which of the following statements or expressions are incorrect? String s = Welcome

in java
Suppose that s1 and s2 are two strings. Which of the following statements or
expressions are incorrect?
String s = "Welcome to Java";
String s3= s1+ s2;
String s3= s1- s2;
s1== s2;
s1>= s2;
s1.compareTo(s2);
int i = s1.length();
char c = s1(0);
char c = s1.charAt(s1.length());

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 Databases Questions!