Q. What is the value stored in x in the following lines of Java code?
int x, y, z;
x = 0;
y = 1;
x = y = z = 8;

  • (A) 0
  • (B) 3 2 3
  • (C) 9
  • (D) 8
πŸ’¬ Discuss
βœ… Correct Answer: (D) 8

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
120
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Pooja
Publisher
πŸ“ˆ
82%
Success Rate