What is the output of the following code segment ?
Boolean b= false ;
if (b = true)
System.out.println("true");
else
System.out.println("false");
(A) true
(B) false
(C) compiler error
(D) none
i believe eithher the question or the answer given is wrong
what you all people say ??