Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

variable declaration-

 
Pradheep Thiruvengadam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any diff. between following declarations
public static final int i=0;
public final static int i=0;
 
Jeremy Thornton
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope, only in terms of readability.
Your first example is usually the prefered layout, but it makes no difference to the semantics of the statement.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic