About Question enthuware.ocpjp.i.v11.2.3241 :
Posted: Mon Jan 13, 2020 9:36 am
I cant understand, why bool b = null; is not valid?
Code: Select all
class bool {}
...
bool b = null;
Java Certification Resources and Java Discussion Forum
https://enthuware.com/forum/
Code: Select all
class bool {}
...
bool b = null;
bool is an invalid keyword. Therefore, 1 and 4 can't be right. (Although 1 could be right if bool were a user defined class but as per Java coding conventions, a class name should start with a capital letter.)