I'm just curious, how i should write @Override annotation cause what i can see there are two ways. First:
class Lisa extends Homer {
  @Override void doh(Milhouse m) {
    System.out.println("doh(Milhouse)");
  }
}
source: Bruce Eckel, Thinking in Java, 4th edition.
Second way:
@Override
public LittleFish next() {
  // TODO Auto-generated method stub
  return null;
}
source: Eclipse methods auto-generator and i saw this in some other places.
I like to keep my code clean and consistent with Java rules so I'm really intereseting in this topic. Sorry for dumb question, but i couldn't find answer in Google and even here.
Thank you!
 
     
     
     
     
    