- A NumberSeven NotSeven
- B NumberSeven
- C NotSeven
- D Error
Java Programming Language MCQ Java Control Flow
⚠ Report ✓ Question Verified Copy Link
class Test{
public static void main(String args[]){
int x=7;
if(x==2); // Note the semicolon
System.out.println("NumberSeven");
System.out.println("NotSeven");
}
}
What would the output of the program be?
Learn More MCQ Questions from Java Programming Language MCQ Java Control Flow