हिंदी

Differentiate between toLowerCase() and toUpperCase().

Advertisements

प्रश्न

Differentiate between toLowerCase() and toUpperCase().

अंतर स्पष्ट करें
Advertisements

उत्तर

S. No. toLowerCase() toUpperCase()
1. Converts all the characters in the String to lowercase. Converts all characters in the String to upper case.
2. Example:
String t = "JOSH"; 
System.out.println(t.toLowerCase());

Example:

String t = "kite"; 
System.out.println(t.toUpperCase()); 
3. In the example above, the outcome will be Josh. In the case above, the output will be KITE.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 4: String Handling - EXERCISES [पृष्ठ २८९]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 4 String Handling
EXERCISES | Q VI. 3. | पृष्ठ २८९
Advertisements
Share
Notifications



      Forgot password?
Use app×