Lesson 5 - Java Program Basics
Lesson 5 - Java Program Basics
Lesson 5
NEIL A. MUTIA, MIT
Java Class Naming Convention
There are a few rules and conventions related to the naming of Class.
Parentheses
() • Parentheses are used for two purposes: (1) to control the order of operations in an
expression, and (2) to supply parameters to a constructor or method.
Actual Situation
Variables
Data Type Size Description
int (Integer) 4 bytes Stores whole numbers from -2,147,483,648 to
2,147,483,647
double 8 bytes Stores fractional numbers. Sufficient for storing 15
decimal digits
Sample Output:
My First Name: Neil
My Last Name: Mutia
My Middle Initial: A.
My Age: 29 years old
My Cellphone Number: +(63) 9302219414
My Height in Centimeter: 167.64