मराठी

Write the output of the codes given below. String ra ="Failure is not failing.";String rb ="Failure is, giving up."; int p1 = ra.indexOf(′ b'); // b indicates one space

Advertisements
Advertisements

प्रश्न

Write the output of the codes given below.

String ra ="Failure is not failing.";String rb ="Failure is, giving up.";
int p1 = ra.indexOf(′ b');     // b indicates one space   
String ca = ra.substring(0, p1);    boolean v = rb.startsWith(ca);
System.out.println(" ca = "+ ca);   System.out.println(" V =" +v);
अति संक्षिप्त उत्तर
Advertisements

उत्तर

ca = Failure

V = true

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 10: String Handling - Exercises [पृष्ठ २४७]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 10 String Handling
Exercises | Q 2. (e) | पृष्ठ २४७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×