[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

JAVA Programming :: Basic Concepts - Discussion

Home > JAVA Programming > Basic Concepts > MCQs Questions Discussion

31 / 64

Choose the correct option.

String s = new String("xyz");
Assuming the above declaration, which of the following statements would compilation. Select the one correct answer.

As = 2 * s;

Binti = s[0];

Cs = s + s;

Ds = s >> 2;

ENone of the above

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here