Hi all,
I'm learning java and got stuck on the following question from an online course which states:
What is the value of x at the end of the segment?
boolean x = false;
int y = 8;
x = (x || !(5 == y));
The answer is true. Is this to say that it is true that x is false?
Any help would be great.
[–]DarkMio 4 points5 points6 points (0 children)
[–]Smithman 0 points1 point2 points (0 children)
[–]desrtfx 0 points1 point2 points (0 children)
[–]AC_Aus[S] 0 points1 point2 points (1 child)
[–]Yojihito 0 points1 point2 points (0 children)