Skip to content

Latest commit

 

History

History
executable file
·
16 lines (14 loc) · 360 Bytes

method-naming.md

File metadata and controls

executable file
·
16 lines (14 loc) · 360 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()
    {
        ...
    }
}