Java Programming Guide - Quick Reference
ΠΠ°ΡΠ΅Π³ΠΎΡΠΈΡ: Other
ΠΠΎΠ΄Π΅Π»ΠΈΡΡΡΡ:
Java naming conventions:
Variable Names: Can start with a letter, β$β (dollar symbol), or β_β (underscore); cannot start with a number; cannot be a reserved word.
Method Names: Verbs or verb phrases with first letter in lowercase, and the first letter of subsequent words capitalized; cannot be reserved words.
Example: setColor()
Class And Interface Names: Descriptive names that begin with a capital letter, by convention; cannot be a reserved word.
Constant Names: They are in capitals.
Example: Font.BOLD, Font.ITALIC
Π‘ΠΊΠ°ΡΠ°ΡΡ
ΠΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠΈ