About Question enthuware.ocajp.i.v7.2.1051 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
kashyapa
Posts: 23
Joined: Thu May 08, 2014 5:27 am
Contact:

About Question enthuware.ocajp.i.v7.2.1051 :

Post by kashyapa »

Would like to add another fact to the explanation, that the value of the case label also should be compile time constance. Isn't it Mr. Paul??

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1051 :

Post by admin »

That is correct. Further, you cannot have boolean expression for switch/case either. So it is invalid for that reason as well.
HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests