Question | Answer |
What is String? | the ability to program with words |
What is String literal? | character(s) enclosed in double quotation marks |
What is Syntax? | grammar,order and structure of the element in a language statement |
What is Declaration? | process of telling the compile the name of a variable and the type of data to be stored in the memory location allocated to the variable |
What is Data Types? | classification that determines how data is stored |
What is boolean? | allows storage of the value true or false. |
What is a character variable? | allows storage on any keyboard character |
What is a integer variable? | allows storage of integers (w/o decimals) |
What is assignment? | process of storing a value at a variable's memory |
What is a real variable? | allows storage of a irrational and rational numbers (with decimals) |
What is Data Types? | classification that determines how data is stored, possible values for data and the operations that can be performed on the data |
What is program block? | the code enclosed between open and closed curly braces |
What is data? | information formatted in a distinct way |
What is hard coding? | not using symbolic names |
What size is a boolean? | 1 bit |
What size is a character? | determined by JVM |
What size is a String? | 64 bits - 8 bytes |
Rules | must be followed or program produces a compiler error. |
Conventions | are standards followed by programmers of a particular language. |
Naming Conventions | variable names should be meaningful, classes start with capital letter and constants are all capitals |
Naming rules | alphanumeric and no spaces |
Primitive data types | int, String and double |
What size is an integer? | 32 bits - 4 bytes |
What size is a double? | 64 bits - 8 bytes |
What size is a character? | determined by JVM |
the basic syntax for declaration? | <data type> variableName; |
the basic syntax for assignment? | |
When should one character variables be used? | when they are temporary |
Where does the compiler begin? | main method |