Home » JAVA Programming » Arrays » Question
  1. What is the output of this program?

    public class Result
    {
    public static void main(String args[])
    {
    boolean p = false;
    boolean q = true;
    boolean r = q ^ p;
    System.out.println(!r);
    }
    }
    1. false
    2. 0
    3. 1
    4. true
    5. None of these
Correct Option: A

output: false



Your comments will be displayed only after manual approval.