English

Write the output of the codes given below. System.out.println("M isUpperCase ::" + Character.isUpperCase('M'); System.out.println(“j toUpperCase ::" + Character.toUpperCase('j'));

Advertisements
Advertisements

Question

Write the output of the codes given below.

System.out.println("M isUpperCase ::" + Character.isUpperCase('M');
System.out.println(“j toUpperCase ::" + Character.toUpperCase('j'));
System.out.println("+ isUpperCase ::" + Character.isUpperCase('+'));
System.out.println("? toUpperCase ::" + Character.toUpperCase('?'));
Very Short Answer
Advertisements

Solution

M isUpperCase :: true

j toUpperCase :: J

+ isUpperCase :: false

? toUpperCase :: ?

shaalaa.com
  Is there an error in this question or solution?
Chapter 10: String Handling - Exercises [Page 248]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 10 String Handling
Exercises | Q 3. (k) | Page 248
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×