MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program? class Output { public static void main(String args[]) { char a[] = {'a', '5', 'A', ' '}; System.out.print(Character.isDigit(a[0]) + " "); System.out.print(Character.isWhitespace(a[3]) + " "); System.out.print(Character.isUpperCase(a[2])); } } |
| A. | true false true |
| B. | false true true |
| C. | true true false |
| D. | false false false |
| Answer» C. true true false | |