Language:
English
English
Hungarian
Login
Detailed search
K
N
O
L
I
B
R
I
Questions/quizzes: if
Text
Age
Difficulty
Value
Creator
Published
DETAILS
en
Given the following Java code: class Test2 { public static void main(String [] args) { boolean x = true; boolean y = false; short z = 42; if((x == true) && (y = true)) z++; if((y == true) || (++z == 44)) z++; System.out.println("z = " + z); } } What is the result of the compilation and running?
java
scjp
if
Ⓐ
4
-
Szabolcs
2012.01.20.
@*0*3*0*0%*Ⓐ (Ⓐ)*4 (4)*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*
QUESTION TEXT
Favorited
Tried
Solved correctly
Average %
Recommended age
Difficulty level
Difficulty
(
)
Recommended age
(
)
Overall value
(
)
Tagging
(
)
Precision
(
)
Clarity
(
)
Create new question
Draft questions
Draft quizzes
Favorites
Import questions
Export own questions
New items
Top themes and tags
Badges
Question of the minute
hu
Egyik szólásunk szerint mi volt egyszer Budán?
anyanyelv
@*0*0*0*-*⑫ (⑫)*3 (3)*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*
QUESTION TEXT
Favorited
Tried
Solved correctly
Average %
Recommended age
Difficulty level
Difficulty
(
)
Recommended age
(
)
Overall value
(
)
Tagging
(
)
Precision
(
)
Clarity
(
)