Java Coding Standards

preview_player
Показать описание
Whenever we code its highly recommend to follow coding standards

Class Names(Nouns): Should start with Uppercase
Eg: class GenericServlet
Interface names(Adj): Should start with Uppercase
Eg: Runnable
Method names(Verbs): should start with lower case and from next word onwards first letter should be in uppercase
Eg: runThread();
Variables(Nouns): should start with lowercase
Eg: int age;
Constants(Nouns): only uppercase and if multiple words can be separated by ‘_’
Рекомендации по теме