Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

What is the "Compile time constant" norm for a switch case constant ?

843789Oct 30 2009 — edited Oct 30 2009
Hi Guys,

AS per the Kathy Sierra written book for SCJP 1.5 :

The case constant for a switch statement must be a compile time constant,only final is not enough.

Now,what is a compile time constant ?

Don't even integers which are declared normally ( For ex. int k=5;) act as case constants in a switch statement ?

Thanks.

Comments

thatJeffSmith-Oracle

Do I misunderstand your request?

Clicking here will select all your schemas

pastedImage_0.png

David in Austria

Yes exactly. Our environment has many schemas which maybe is not often the case.
I'm using filtering a lot in the navgation tree and the behaviour would fit here too in my opinion.

thatJeffSmith-Oracle

oh I see a bug...

i can multi-select items, and if i hate spacebar, only the first item toggles, will log for you

David in Austria

cool

1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 27 2009
Added on Oct 30 2009
19 comments
355 views