Java Programming Guide - Quick Reference



Книга Java Programming Guide - Quick Reference
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

Читать книгу Java Programming Guide - Quick Reference бесплатно на Codengineering.ru
80   0  

Comments

    Ничего не найдено.