Java Glossary : ordering

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : O words : ordering.

ordering
I have been experimenting with various ways of ordering the variables and methods in classes. You want a consistent scheme to help you: The third consideration is less important these days with quasi-SCID tools that let you find the definition for something at a mouse click.

You can order for the convience of either someone using your class as a black box, or for someone who is trying to understand how it works inside, or for the convience of the maintenance programmer thoroughly familiar with it.

There are tools such as VAG and Eclipse that will reorder methods and declarations for you. It does not matter to the computer, unless initialisation code contains forward reference.

Here are some possible schemes.

For keywords order preferably like this: public, protected, private, abstract, static, final, transient, volatile, synchronized, native, strictfp

I'd interested in discovering links to tools that will automatically reorder.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 621.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/ordering.html J:\mindprod\jgloss\ordering.html