What Will Be The Output Of The Following Java Programp Pre #534
What will be the output of the following Java program?</p> <pre><code class="language-java" line="1"> 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])); } }</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Exploring Java Lang Java IO - Java.lang - Character Wrapper Advance - Quiz No.1.
What will be the output of the following Java 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])); } }
true false true
false true true
true true false
false false false