This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes How   final var or constant exp are evaluated...?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How   final var or constant exp are evaluated...??" Watch "How   final var or constant exp are evaluated...??" New topic
Author

How final var or constant exp are evaluated...??

Naveen Raja
Greenhorn

Joined: Jul 28, 2006
Posts: 10
Hi,

As for i know , constant expressions are evaluated at compile time..but i am not sure about FINAL var...Whether compiler do this or JVM..?

Thank you very much.

Naveen.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How final var or constant exp are evaluated...??
 
Similar Threads
somebody please explain me this
Switch Case
Java compile time constants confusion
switch case
Legal arguments in switch case statements