Every time I write a 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
]?
[public/private/protected] [final/abstract/static] [synchronized] [type] func()
... – Lim