Q.

Given the following declarations String s1=new String("Hello") ; String s2=new String("there"); String s3=new String(); Which of the following are legal operations?

A. s3=s1 + s2;.
B. s3=s1 - s2;.
C. s3=s1 & s2.
D. s3=s1 && s2.
Answer» A. s3=s1 + s2;.
3.3k
0
Do you find this helpful?
30

View all MCQs in

Java Programming

Discussion

No comments yet