About Question enthuware.ocpjp.v7.2.1227 :
Posted: Sun Nov 04, 2012 9:10 am
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
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