Prog Keywords,Literals, Data Types And Variable Statements Flashcards
Case Sensitive
Every line of code must be inside a class
Java Program
Specifies one or more actions to be performed during the execution of program
Java Statement
A block is formed when?
Enclosing statement by curly braces
Used to add notes and it is ignored by the compiler
Comments
Comment //
Single line
Comment /**/
Block
Comment /** **/
JavaDoc
Words that are used to to properly identify name a class, procedure, methods, or variables.
Java Identifiers
Case sensitive
Cannot start with a number
Can use (Aa-Zz) (0-9) (_,$)
Keywords are not allowed
Java Identifiers Rules
Items in a program whose value do not change
Java Literals
Used to represent specific integer values
Can be expressed in
Octal 8
Decimal 10
Hexadecimal 16
Integer Literals
F is always required
Floating Point Literals
True or False
Boolean Literals
Zero or More characters enclosed in double quotation marks
String Literals
Enclosed in single quotation marks
Character Literals