What is output of following syntax? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is output of following syntax?

system.out.println((1+"1")+1+1);

13th Jun 2017, 3:46 PM
shreedhara k s
shreedhara k s - avatar
6 Answers
+ 4
error. System gets a capital S... after that, I suggest you run that code and find out. That's how we learn https://code.sololearn.com/cnyt0aJD1DJq/?ref=app
13th Jun 2017, 3:47 PM
LordHill
LordHill - avatar
0
Yea, I know. If you already knew and were just asking, I would focus on creating quiz questions instead of using the question forum. This is a place to get help
13th Jun 2017, 3:57 PM
LordHill
LordHill - avatar
0
OK,but someone might aware of it.they get to know about it na?
13th Jun 2017, 3:59 PM
shreedhara k s
shreedhara k s - avatar
0
This exact topic came up yesterday. The difference was instead of just telling us what it did, he asked why it did that.. If you want to spread your knowledge, which is a good thing, Tell him why it is that way
13th Jun 2017, 4:02 PM
LordHill
LordHill - avatar
0
ok.thank u for ur suggestion
13th Jun 2017, 4:12 PM
shreedhara k s
shreedhara k s - avatar
- 2
bro,answer will be 1111
13th Jun 2017, 3:52 PM
shreedhara k s
shreedhara k s - avatar