Skip to content

My developer's blog

By Dirk Schuermans

  • About me
  • Facebook
  • LinkedIn
  • Twitter

Links

  • Back to schuermans.me
  • Singleton pattern

Developer resources

  • Visual C# Developer Center

Networking

  • About me
  • Facebook
  • LinkedIn
  • Twitter

Categories

  • Archive
  • DevOps
  • Programming

Menu

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

Use of private static final declarations

When we declare a variable like this:

private static final String foo = "FOO!";
  • private
    • Variable can only be used in the current class, not in any parent or child classes
  • static
    • There will only be 1 instance throughout the entire class
  • final
    • “FOO!” will remain the value of this variable at all times, it cannot be changed.
Posted on June 7, 2009January 7, 2016Categories ArchiveLeave a comment on Use of private static final declarations

Posts navigation

Previous page Page 1 … Page 44 Page 45 Page 46 Next page
Proudly powered by WordPress