Skip to content

Latest commit

 

History

History
executable file
·
14 lines (12 loc) · 357 Bytes

method-naming.md

File metadata and controls

executable file
·
14 lines (12 loc) · 357 Bytes

Java Naming Convention > Method Naming

camelCase

  • Begin with a lowercase letter
  • Preferably a verb e.g. getCar(), purchase(), book()
  • If the name contains multiple words, start it with a lowercase letter followed by an uppercase letter e.g. getJsonParser()
public class Company {  
    void getEmployee() {
        ...
    }
}