Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 518 Bytes

namingconventions.rst

File metadata and controls

18 lines (11 loc) · 518 Bytes

Naming Conventions

{sec:naming_conventions}

Java has some very handy naming conventions.

  • Class names always start with an upper case letter. For example, Scanner, System, Hello
  • Method names always start with a lower case letter, and use camelCase to represent multiword method names. for example nextInt()
  • Instance variables of a class start with a lower case letter and use camelCase
  • Constants are in all upper case letters. for example Math.MAXINT