Vidyalelo
Java Programming · Q77

Interfaces and Abstract Classes

Programming · Java Programming · question 77

Q77

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

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

Answer: Option A

Solution

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