English

Write the output of the codes given below. String s1 = "Stay Active"; String s2 = "Stay Creative"; String sst1 = s1.substring(5, 11); String sst2 = s2.substring(5); System.out.print("Always "+sst2+"

Advertisements
Advertisements

Question

Write the output of the codes given below.

String s1 = "Stay Active"; String s2 = "Stay Creative";
String sst1 = s1.substring(5, 11);    String sst2 = s2.substring(5);
System.out.print("Always "+sst2+" and" +sst1);
Very Short Answer
Advertisements

Solution

Always creative and active

shaalaa.com
  Is there an error in this question or solution?
Chapter 10: String Handling - Exercises [Page 246]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 10 String Handling
Exercises | Q 3. (a) | Page 246
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×