Monday, March 19, 2012

Compile Time Only

The const and final keywords only apply at compile time. Despite having written about const and final before, readers frequently ask me about these two keywords. Today’s article will answer the question and definitively show that these keywords only apply at compile time: not runtime. Let’s start with const. Consider this simple class: class MathConstants [...]

Read more: Compile Time Only

No comments:

Post a Comment