Skip to content

Latest commit

 

History

History
executable file
·
13 lines (11 loc) · 374 Bytes

constant-naming.md

File metadata and controls

executable file
·
13 lines (11 loc) · 374 Bytes

Java Naming Convention > Constant Naming

SCREAMING_SNAKE_CASE

  • Should be all uppercase letters e.g. AGE, HEIGHT
  • If the name contains multiple words, it should be separated by an underscore(_) such as DAYS_IN_MONTH
  • It may contain digits but not as the first letter
class Product {   
    static final int MAX_TEMPERATURE36;  
    ...
}