Every time I write method in Java with more keywords than public void
, every time I write it another way. Sometimes "static public void
" sometimes "public static void
" etc.
What is the best order (best practices) for these keywords?
[abstract/static
] [final
] [synchronized
] [public/private/protected
] [result_type
] ???
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…