About Question enthuware.ocpjp.v7.2.1230 :

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

Moderator: admin

Post Reply
ThufirHawat
Posts: 28
Joined: Wed Feb 25, 2015 9:03 am
Contact:

About Question enthuware.ocpjp.v7.2.1230 :

Post by ThufirHawat »

I don't understand this:
FYI : case labels must be compile time constants. Thus, you cannot use non-final variable names as labels. Only compile time final variables can be used.
I can only use final variables in switches? Compile time final variables is just a final variable declared commonly?

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

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

Post by admin »

Yes, that is correct.

ThufirHawat
Posts: 28
Joined: Wed Feb 25, 2015 9:03 am
Contact:

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

Post by ThufirHawat »

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests