the constant Java blog

public static final

  • Home
  • About

Posts Tagged Constants

Be aware: Constants get inlined at compile time

Posted by Daniel in java on October 13, 2009

Most books tell you that new String(“value”) should not be used since it creates two objects although only one is needed. But what the books almost never tell you is that there is one case in which you should use it: Java constants aka “public static final”. Read the rest of this entry »

Constants, Memory

1 Comment

    • Blog
    • Fun
    • java
    • JavaEE
    • JSF
    • Stuff
    • Uncategorized
    • Web
  • Archives

    • February 2011
    • January 2011
    • August 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • August 2009
    • June 2009
    • May 2009
    • January 2009
  • Tags

    Ajax Apache API bean Closures Collections Constants EL Facelets FOP Framework Fun JavaEE 6 JSE7 JSF jsr-299 jsr-303 Language ldap Memory MySQL OpenSource PDF security String Sun Tomcat validation Weak Reference Web Profile Weld
  • Recently Updated Posts

    • 22.01.: RIP Sun
    • 04.01.: Google Collections Library 1.0 available
    • 30.12.: Save MySQL! campaign
    • 15.12.: Integrating JSF 2.0 and Weld with Tomcat6
    • 02.12.: JavaEE 6 has been approved
  • Recent Comments

    • Ondra Zizka on Weld tutorial – Part 2
    • Ondra Zizka on Weld tutorial – Part 2
    • Ondra Zizka on Weld tutorial – Part 2
    • Tomek on Unified EL: Method calls using parameters
    • Flavio Almeida on Integrating JSF 2.0 and Weld with Tomcat6
  • Blogroll

    • In Relation To…
    • The Aquarium
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

public static final is Digg proof thanks to caching by WP Super Cache!

Crailsheimer Jahrgangstreffen

Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^

SetTextSize SetPageWidth