मराठी

If String x = "Computer";String y = "Applications"; What do the following functions return? System.out. println(x.substring(1,5)); System.out.println(x.indexOf(x.charAt(4))); System.out.println(y - Computer Applications

Advertisements
Advertisements

प्रश्न

If String x = "Computer";
String y = "Applications";

What do the following functions return?

  1. System.out. println(x.substring(1,5));
  2. System.out.println(x.indexOf(x.charAt(4)));
  3. System.out.println(y + x.substring(5));
  4. System.out.println(x.equals(y)); 
थोडक्यात उत्तर

उत्तर

  1. ompu
  2. 4
  3. Applicationster
  4. false
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 4: String Handling - EXERCISES [पृष्ठ २८८]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 4 String Handling
EXERCISES | Q IV. 8. | पृष्ठ २८८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×