Java From Beginner To Advanced

0% completed

Previous
Next
Quiz
Question 1
What is the result of the following Java expression?
A
90
B
60
C
70
D
30
Question 2
What will be the output of the following Java code?
int a = 5;
int b = ++a;
System.out.println(b);
A
6
B
5
C
7
D
Compilation Error
Question 3
Which operator has higher precedence in Java?
A
+ (Addition)
B
&& (Logical AND)
C
== (Equality)
D
* (Multiplication)
Question 4
What is the value of x after the following code executes?
int x = 10;
x += 5;
A
10
B
15
C
5
D
20
Question 5
Which of the following is a bitwise operator in Java?
A
|
B
&&
C
>
D
++

.....

.....

.....

Like the course? Get enrolled and start learning!
Previous
Next