Itpf01 Reviewer
Itpf01 Reviewer
UNIT 2:
JAVA PROGRAMMING BASICS
JAVA PROG. COMMENTS
Comments - can be used to explain Java code, and
to make it more readable. It can also be used to
prevent execution when testing alternative code.
TYPES OF COMMENTS NAMING CONVENTIONS
- Single Line Comments Class Names - For all class names, the first letter
- Multi-line Comments should be in Upper Case. If several words are used
Single Line Comments – One liner comments used to form a name of the class, each inner word’s first
to hide single code or provide clue on the code. letter should be in Upper Case.
Denoted by //. Example class: MyFirstJavaClass
Method Names - All method names should start
with a Lower-Case letter. If several words are used
to form the name of the method, then each inner
word's first letter should be in Upper Case.
Example: myMethodName()
IT PF-01
OBJECT ORIENTED PROGRAMMING
Constant Names – All constant names should be in
written in Upper Case. If several words are used to
form the name of the constant, then put underscore
between words.
Example: TAX_RATE