Typos in challanges. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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?

13th May 2017, 4:36 PM
SzabĆ³ GĆ”bor
SzabĆ³ GĆ”bor - avatar
1 Resposta
+ 1
haha yeaa agreed!! =.=
14th May 2017, 4:54 PM
Joshua Lauwrich Nandy
Joshua Lauwrich Nandy - avatar