+3 votes
in Class 12 by kratos

Carefully study the code given below:

String Message = "Hello! How are you?", Msg1,Msg2;

Msg1 = Message.substring(7);

Msg2 = Message.substring(0,5);

What will be the contents of the variables Msg1 and Msg2 after the above statements are ****?

1 Answer

+3 votes
by kratos
 
Best answer

Msg1 = How are you?

Msg2 = Hello

...