Examveda
Examveda

What is the output of the following code snippet?

int x = 5;
if (x > 3) {
System.out.println("Hello");
}

A. No output

B. Error

C. Hello

D. 5

Answer: Option C


This Question Belongs to Java Program >> Flow Control

Join The Discussion

Related Questions on Flow Control