What will be the output of the following Java code?
class Output
{
public static void main(String args[])
{
boolean a = true;
boolean b = false;
boolean c = a ^ b;
System.out.println(!c);
}
}
0
1
true
false
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What will be the output of the following Java program?
Solution |
2
Discuss
|
What will be the output of the following Java code?
Solution |
3
Discuss
|
Modulus operator, %, can be applied to which of these?
Solution |
4
Discuss
|
Which of these have highest precedence?
Solution |
5
Discuss
|
What will be the output of the following Java program?
Solution |
6
Discuss
|
What will be the output of the following Java program?
Solution |
7
Discuss
|
What will be the output of the following Java code?
Solution |
8
Discuss
|
Which of these operators can skip evaluating right hand operand?
Solution |
9
Discuss
|
What will be the output of the following Java program?
Solution |
10
Discuss
|
What will be the output of the following Java code?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved