English

Predict the output of the following: String str1 = "Information Technology"; String str2 = "information technology"; boolean p = str1.equalsignoreCase(str2); System.out.println("The result is" + p ); - Computer Applications

Advertisements
Advertisements

Question

Predict the output of the following:

String str1 = "Information Technology"; 
String str2 = "information technology"; 
boolean p = str1.equalsignoreCase(str2); 
System.out.println("The result is" + p ); 
Answer in Brief

Solution

The result is true.

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. 5. | Page 287
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×