Vidyalelo
Java Programming · Q109

Interfaces and Abstract Classes

Programming · Java Programming · question 109

Q109

What will be the output of the following Java program? class Output public static void main(String args[]) String str = "true false true"; boolean x = Boolean.valueOf(str); System.out.print(x);

A.
True
B.
False
Answer
C.
Compilation Error
D.
Runtime Error

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board