Error on OCP 1Z0-815 BOOK Deshmukh, Hanumant Page 237
Posted: Sun Apr 05, 2020 8:02 am
I dont know if i already made this but i dont see it on the errata.
In page 237
10.5.3 Accesing static members from the same class.
I see
But this is a compilation error because the printCount() method is void and cannot be inside a System.out.println
Best regards.
In page 237
10.5.3 Accesing static members from the same class.
I see
Code: Select all
System.out.println(InstanceCounter.printCount()+" "+InstanceCounter.count);

Best regards.