File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes variable declaration- Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "variable declaration-" Watch "variable declaration-" New topic

variable declaration-

Pradheep Thiruvengadam

Joined: Aug 11, 2003
Posts: 7
is there any diff. between following declarations
public static final int i=0;
public final static int i=0;
Jeremy Thornton
Ranch Hand

Joined: Feb 21, 2002
Posts: 91
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.
I agree. Here's the link:
subject: variable declaration-
jQuery in Action, 3rd edition