File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "variable declaration-" Watch "variable declaration-" New topic
Author

variable declaration-

Pradheep Thiruvengadam
Greenhorn

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: variable declaration-
 
Similar Threads
Doubt in StackOverflowError
Final instance variable
Data Type Mappings
Creating new keys
Enumns - Pros/Cons?