English

Write the output of the codes given below.String sc = "CLOCК"; String st = "TIME"; int sclen = sc.length(); String p1 = st.substring(0, 2); String p2 = sc.substring (3, sclen);

Advertisements
Advertisements

Question

Write the output of the codes given below.

String sc = "CLOCК";     String st = "TIME";
int sclen = sc.length();
String p1 = st.substring(0, 2);   String p2 = sc.substring (3, sclen);
System.out.print(p1 + p2);
Very Short Answer
Advertisements

Solution

TICK

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. (c) | Page 246
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×