+ 2

What is the output of this program

public class Program { public static void main(String[] args) { if(true); else System.out.println("else condition"); } }

19th Dec 2016, 2:31 PM
Avanish Kumar
Avanish Kumar - avatar
6 Answers
+ 2
error?
19th Dec 2016, 2:33 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
Nothing as the if condition is always true.
19th Dec 2016, 2:34 PM
EgorL
0
nothing would b printed
19th Dec 2016, 4:00 PM
anurag modi
anurag modi - avatar
0
No output Appear But the code is correct in syntax
25th Dec 2016, 6:24 AM
Hesham M.Abu Elenain
Hesham M.Abu Elenain - avatar
0
error
26th Dec 2016, 8:46 AM
rajitha
0
error
31st Dec 2016, 9:48 AM
knehymhar jhay arrr
knehymhar jhay arrr - avatar