sun-coding-conventions

java style for long throws exception list

What's the Java style for formatting a long throws list? Let's say I have this: public void some() throws IOException, ClassNotFoundException, NoSuchMethodException,InvocationTargetException, IllegalAccessException { } Should it be: public void some() throws IOException, ClassNotFoundException, ...

Java Coding Conventions: Getters & Setters

Why is it convention to place getters and setters after constructors within classes? I would rather see them placed immediately after class fields, before the constructors, in order to see which of the private fields are accessible via getter & setter methods. Especially if the methods' bodies are single return or assignment statements...