English

Give the output of the following: String n = "Computer Knowledge"; String m = "Computer Applications”; System.out.println(n.substring(0,8).concat(m.substring(9))); System.out.println(n.endsWith("e")); - Computer Applications

Advertisements
Advertisements

Question

Give the output of the following: 

String n = "Computer Knowledge";
String m = "Computer Applications”;
System.out.println(n.substring(0,8).concat(m.substring(9)));
System.out.println(n.endsWith("e"));
Short Answer

Solution

Computer Applications

true

shaalaa.com
  Is there an error in this question or solution?
Chapter 4: String Handling - EXERCISES [Page 288]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 4 String Handling
EXERCISES | Q IV. 9. | Page 288
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×