Results 1 to 3 of 3

Thread: static final... or final static

  1. #1

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    static final... or final static

    Hi,

    A stupid question but I'm asking anyway: will there be any subtle difference when I mark a constant as "static final" compared to "final static"?

  2. #2
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    710

    Re: static final... or final static

    No difference.

    The order of declaration modifiers never makes a difference in Java (unlike C++, where the ordering of modifiers around pointers will make a difference).
    David Anton
    Convert between VB, C#, C++, & Java
    www.tangiblesoftwaresolutions.com

  3. #3

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: static final... or final static

    Hmm alright. It was just something nagging in my mind that I read somewhere related to best practices and constants but maybe I was just imagining it.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width