Page 1 of 1

About Question enthuware.ocpjp.v7.2.1227 :

Posted: Sun Nov 04, 2012 9:10 am
by ETS User
in the Explanation:

Rule 1 : The type of the switch expression and the type of the case labels must be compatible. In this case, the switch expression is of type String, so all the case labels must be of type String. Therefore, iv, i, obj, and 100 are invalid.

obj and srty But both are declared similarly


kinds regards

Re: About Question enthuware.ocpjp.v7.2.1227 :

Posted: Sun Nov 04, 2012 9:27 am
by admin
Hello,
Both are declared differently:

Code: Select all

final String str = "100";
final Object obj = "100";
This was fixed recently so please update your question bank file.

HTH,
Paul.

Re: About Question enthuware.ocpjp.v7.2.1227 :

Posted: Sun Aug 09, 2015 3:30 pm
by magdute70
:mrgreen: I'm sure this program will not run forever - system will crash or device will run out of electricity sometime