GIAC
GSSP-JAVA · Question #85
GSSP-JAVA Question #85: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-JAVA to reveal the answer and full explanation for question #85. The question stem and answer options stay visible for context.
Question
Mark works as a Programmer for InfoTech Inc. He develops the following program. class iftest2 {public static void main(String args[]) {int x=0, y=1;if //code//{System.out.println("true");}}} Which of the following if statements are illegal if they are placed at //code//?
Options
- A(y == true)
- B(1)
- C(x == false)
- D(x == 1)
- E(x)
- F(x != y)
Unlock GSSP-JAVA to see the answer
You've previewed enough free GSSP-JAVA questions. Unlock GSSP-JAVA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.