English

State the output of the following program segment. String s = "Examination"; int n = s.length(); System.out.println(s.starts With(s.substring(5 ,n))); System.out.println(s.charAt(2) == s.charAt(6)); - Computer Applications

Advertisements
Advertisements

Question

State the output of the following program segment.

String s = "Examination"; 
int n = s.length(); 
System.out.println(s.starts With(s.substring(5 ,n))); 
System.out.println(s.charAt(2) == s.charAt(6));
Short Answer

Solution

false
true

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

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 4 String Handling
Review Insight | Q 1. | Page 284
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×