I can only use final variables in switches? Compile time final variables is just a final variable declared commonly?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.
About Question enthuware.ocpjp.v7.2.1230 :
Moderator: admin
-
- Posts: 28
- Joined: Wed Feb 25, 2015 9:03 am
- Contact:
About Question enthuware.ocpjp.v7.2.1230 :
I don't understand this:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1230 :
Yes, that is correct.
-
- Posts: 28
- Joined: Wed Feb 25, 2015 9:03 am
- Contact:
Who is online
Users browsing this forum: No registered users and 4 guests