0

Why am i getting error in that code ?why can't we do like that?

https://code.sololearn.com/coiADOd6hFKh/?ref=app

8th Sep 2019, 12:37 PM
Indu Devarashetty
Indu Devarashetty - avatar
2 Answers
+ 1
Just delete obj.a; at line 5. If you write this without any statement like: Obj.a=5; The program will get error
8th Sep 2019, 12:44 PM
KfirWe
KfirWe - avatar
0
delete at line 5, Sololearn counts lines incorrect //obj.a; System .out.println (obj.a); obj.a do nothing, it is not method nor assignment
9th Sep 2019, 4:18 AM
zemiak