5 years ago in Java Operators

What is the value stored in x in following lines of code?
int x, y, z;

x = 0;

y = 1;

x = y = z = 8;

[A] 0
[B] 1
[C] 9
[D] 8
Loading...
Next Question

Overall Stats

Attempted 176
Correct 73
Incorrect 34
Viewed 69

Answers

Guest
Guest
Umayal Nachiappan
Umayal Nachiappan - 3 weeks ago

Umayal Nachiappan from Chennai, India is saying 0 is correct answer

Vaibhav Bisht
Vaibhav Bisht - 3 weeks ago

Vaibhav Bisht from Dehradun, India is saying 1 is correct answer

Cos Sinus
Cos Sinus - 4 weeks ago

Cos Sinus from Casablanca, Morocco is saying 8 is correct answer

Awa Kone
Awa Kone - 4 weeks ago

Awa Kone from Berrechid, Morocco is saying 8 is correct answer

Zo Go
Zo Go - 4 weeks ago

Zo Go from Casablanca, Morocco is saying 8 is correct answer

Related Questions

What is the order of precedence (highest to lowest) of following operators?
1. &
2. ^
3. ?:

  • [A] 1 -> 2 -> 3
  • [B] 2 -> 1 -> 3
  • [C] 3 -> 2 -> 1
  • [D] 2 -> 3 -> 1

Modulus operator, %, can be applied to which of these?

  • [A] Integers
  • [B] Floating – point numbers
  • [C] Both Integers and floating – point numbers
  • [D] None of the mentioned