|
-
Sep 28th, 2009, 07:27 AM
#1
Thread Starter
Frenzied Member
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"?
-
Sep 28th, 2009, 09:07 PM
#2
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).
-
Sep 29th, 2009, 05:40 AM
#3
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|