click below
click below
Normal Size Small Size show me how
Basics
Java
| Question | Answer |
|---|---|
| computer program | a sequence of instructions that a computer can decode and execute |
| syntax | set of rules defining how a program is written and interpreted |
| convention | a set of guidelines for a specific programming language that recommend programming style, practices, and methods for each aspect of a program written in that language |
| compiler | converts the source code into machine code |
| source code | text file program written in a higher level programming language |
| byte code | the language to which Java source is compiled and the Java Virtual Machine understands |
| interpreter | read, translate and execute one statement at a time from a high-level language program |
| machine code | instructions that can be executed directly by a computer's central processing unit (CPU) |
| syntax error | occurs when a compiler or interpreter cannot understand the source code statement in order to generate machine code |
| concatenation | the operation of joining two strings together |
| String literal | a sequence of zero or more characters enclosed within a set of double quotation marks character literal a sequence of zero or one characters enclosed within a set of single quotation marks |
| integer literal | a whole number |
| variable | value that can change based on operations performed or information passed |
| data type | storage classifications like integers, floating point values, strings, characters etc. |
| primitive | a data type which is not an object |
| primitive data type | boolean , byte , char , short , int , long , float and double |
| primitive data | uses a small amount of memory to represent a single item of information |
| int | data type for whole numbers |
| double | data type for real numbers |
| char | data type for single characters |
| boolean | data type for true or false |
| variable declaration | specifying a data type and its name |
| reserved word | have predefined meaning and cannot be used as an identifier |
| assignment statement | uses the = operator to set the value of a variable |
| expression | built using values, variables, operators and method calls |
| operator | symbol that performs a specific kind of operation on one, two, or three operands, and produces a result |
| operand | part of a computer instruction which specifies what data is to be manipulated or operated on, while at the same time representing the data itself |
| Arithmetic(binary) operator | symbol that performs a specific kind of operation on two operands, and produces a result |
| Unary operator | symbol that performs a specific kind of operation on one operand, and produces a result |
| precedence | well-defined rules for specifying the order in which the operators in an expression are evaluated when the expression has several operators |
| Integer arithmetic | operations performed on whole numbers |
| Floating point arithmetic | operations performed on real numbers |
| Integer division | operation that discards the fractional part |
| Remainder division | operation that calculates the integer left over after dividing one integer by another |
| Mixed-mode arithmetic | when integer operands are converted to real numbers because of precedence |
| identifier | names of variables and methods |
| cast | assign a value of one type to a variable of another type |
| main method | the entry point into the application |
| comment | programmer-readable explanation or annotation in the source code of a computer program |
| statement | forms a complete command to be executed and can include one or more expressions |
| narrowing cast | assigning a larger type value to a variable of smaller type; explicit |
| widening cast | the two types are compatible; the target type is larger than the source type; implicit |
| block | statements grouped with curly braces{} |
| floating point literal | a real number |
| static method | called by the class of which it is a member |
| object method | called by the instance of the class of which it is a member |