What will be the output of the following Java code?
class operators
{
public static void main(String args[])
{
int x = 8;
System.out.println(++x * 3 + " " + x);
}
}
24 8
24 9
27 8
27 9
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What is the output of relational operators?
Solution |
2
Discuss
|
What will be the output of the following Java program?
Solution |
3
Discuss
|
What is the order of precedence (highest to lowest) of following operators? 1. & 2. ^ 3. ?:
Solution |
4
Discuss
|
What will be the output of the following Java code?
Solution |
5
Discuss
|
Which of these lines of Java code will give better performance? 1. a | 4 + c >> b & 7; 2. (a | ((( 4 * c ) >> b ) & 7 ))
Solution |
6
Discuss
|
Decrement operator, −−, decreases the value of variable by what number?
Solution |
7
Discuss
|
Which of these statements are incorrect?
Solution |
8
Discuss
|
Which of these is not a bitwise operator?
Solution |
9
Discuss
|
What will be the output of the following Java code?
Solution |
10
Discuss
|
Which of these statements are incorrect?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved