हिंदी

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×