English

Predict the output of the following: String str = "Information Technology"; int p; p = str.indexOf('n'); System.out.println(p); - Computer Applications

Advertisements
Advertisements

Question

Predict the output of the following:

String str = "Information Technology"; 
int p; 
p = str.indexOf('n'); 
System.out.println(p); 
One Word/Term Answer

Solution

1

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×