What will be the output of the following Java program? [code] class Output { public static void main(String args[])

Mỹ Duyên

New member
What will be the output of the following Java program?
Code:
    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
C. Compilation Error
D. Runtime Error
 

Tìm kiếm

Back
Top