हिंदी

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

प्रश्न

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);
अति संक्षिप्त उत्तर
Advertisements

उत्तर

TICK

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 10: String Handling - Exercises [पृष्ठ २४६]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 10 String Handling
Exercises | Q 3. (c) | पृष्ठ २४६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×