+ 5
Typos in challanges.
I don't like challange questions where the error is occured by typo. For example: Whats the output ? class C(){ public int SUM = 0; C(){ SUM++; } public static void main(String args[]){ C c1 = new C(); C c2 = new C(); System.out.print(c.SUM); } } ERROR, because no instance name c. In an IDE it not allowed to compile. I think it would be a nice question about class variables, and feel the diffrrence between this and static variable. What do u think?
1 Odpowiedź
+ 1
haha yeaa agreed!! =.=