+ 1

what is the output of the following code? int a =11; int b = 12; int c =40; if (a> 100 || b > 3) { system.out.println (a); } else { system. out. println (c);}

15th Aug 2016, 9:51 PM
Abdullah
24 Respuestas
+ 6
thanks for the smart ass comment. but if you change it to a capital 'S', the output should be 11.
16th Aug 2016, 12:50 AM
Edward
+ 2
Compile error. There is no class system but System.
15th Aug 2016, 9:59 PM
WPimpong
WPimpong - avatar
+ 2
Sometime java exam need to check if you think like the compiler. No score if your answer is 11.
16th Aug 2016, 1:11 AM
WPimpong
WPimpong - avatar
+ 1
11
16th Aug 2016, 6:11 PM
priya
+ 1
Error , is System not system
16th Aug 2016, 7:55 PM
Geoordanys Martinez
Geoordanys Martinez - avatar
+ 1
11
23rd Aug 2016, 1:58 AM
Scout
Scout - avatar
+ 1
11
24th Aug 2016, 10:18 PM
Maisam Zenieh
Maisam Zenieh - avatar
+ 1
Its saying the answer is 1, but I'm not sure how they got that answer. I'm still new to code so please be patient with me lol!
27th Mar 2019, 1:54 PM
Andrea Johnson
+ 1
answer correct 11
31st Jan 2021, 7:41 PM
Usman
Usman - avatar
0
Thank you all
16th Aug 2016, 5:39 AM
Abdullah
0
compilation error
16th Aug 2016, 10:36 AM
bhupati
0
because System
16th Aug 2016, 10:37 AM
bhupati
0
compilation error
17th Aug 2016, 2:43 AM
bhupati
0
Ok
20th Sep 2016, 7:48 PM
Roman Asanov
Roman Asanov - avatar
0
that's really smart hiding 'a' behind'b' except little whitespace error and it's system not system but then everything is good, I got int 11
11th Nov 2016, 7:47 PM
hunlang
hunlang - avatar
0
11
17th Nov 2016, 4:52 PM
Prarabdh Garg
Prarabdh Garg - avatar
0
It's 11
3rd Oct 2018, 8:25 AM
kaylah
0
my ans is 11
18th Jan 2020, 2:21 AM
Pullaiyannan.M
Pullaiyannan.M - avatar
0
a=11 ans
4th Jan 2021, 10:19 AM
Priya Kumari
Priya Kumari - avatar
0
answer is 11 done ple try ok
26th Jun 2021, 9:55 AM
Harsh Bagadiya
Harsh Bagadiya - avatar