Hoàng Diễm Quỳnh
New member
What will be the output of the following Java program?
A. True
B. False
C. System Dependent
D. Compilation Error
Code:
class Output
{
public static void main(String args[])
{
String str = "true false";
boolean x = Boolean.parseBoolean(str);
System.out.print(x);
}
}
B. False
C. System Dependent
D. Compilation Error