Vidyalelo
Java Programming · Q76

Operators

Programming · Java Programming · question 76

Q76

What will be the output of the following Java program? class Output public static void main(String args[]) int a = 1; int b = 2; int c; int d; c = ++b; d = a++; c++; b++; ++a; System.out.println(a + " " + b + " " + c);

A.
3 2 4
B.
3 2 3
C.
2 3 4
D.
3 4 4
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board