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() {
        ...
    }
}