Java 1 Flashcards
Object orientation
An approach that supports the creation, enhancement and maintenance of complex IT systems
Method
An element of objects that is used to create, read, change and perform calculations on the values of attributes
Class
A structure that is used to create digital objects which are the central elements in the OO software development process
Analysis model
The result of the OO analysis, which is used for communication between developers and client and/or users of system
Complier
A software that translates a program code into a form that can be executed by a computer
Bytecode
The form of Java program after its compilation that can be executed with JRE
Default value
A value that is assigned to an attribute automatically when the object is created
Principle of data encapsulation
An object can never directly access attributes of another object or changing them. It is possible only by getters and setters
Method signature
Method name + parameters list. RETURN TYPE IS NOT A PART OF METHOD SIGNATURE
Method overloading
This process is sued too implement multiple methods with same name and different parameters list
Syntax error
Error in code construction
Runtime error
Error that causes a program to terminate abnormally
Logic error
Error that occurs when a program does not perform the way it was intended to
Pseudocode
Natural language mixed with some programming code
Variable
Value which is stored in computer memory
Data type
The kind of data that is stored in a variable
Specific import
Import that specifies a single class
Wildcard import
Import all classes from a package
Scope of variable
Is the part of the program where the variable can be referenced
Named constant
Is an identifier that represents a permanent value
Literal
Is a constant value that appears directly in a program
Casting
Is an operation that converts a value of one data type into a value of another data type
Software development lifecycle
Is a multistage process that includes requirements specification, analysis, design, implementing, testing, deployment, maintenance
Round off error
The difference between the calculated approximation of a number and its exact mathematical value
Primitive data type
Data type where values are not objects (logical values, integers, floating point numbers, single characters)
Arithmetic operator
Operator for executing mathematical functions, such as addition, subtraction, division, multiplication.
Logical operator
Operator used to run logical functions, such as negation, logical AND, logical OR, logical XOR
Relational operator
Operator used to compare expression against each other
Equality test operator
A relational operator used to run functions that test for equality or non-equality in which operands determine whether values or references are compared
String concatenation
A function of data type String which creates a new string from 2 existing strings
Control structures
Elements of programming language for conditional or nested execution of statements
Package
An element used for structuring Java classes of a development project
Boolean expression
Is an expression that evaluates to a Boolean value
If statement
Is a construct that enables a program to specify alternative paths of execution
Flowchart
A diagram that describes an algorithm or process, showing steps as boxes of various kinds and their order by connecting these boxes with arrows
Nested if statement
The inner if statement in the another if statement
Fail-through behaviour
Once a case in switch statement is matched, the statements from the matched case are executed until the break statement or the end of the switch statement is reached
Conditional operator
(a ternary operator) operator that evaluates an expression based on a condition
Conditional branch
A control structure that is used to execute statements based on multiple, mutually exclusive conditions
Loop
A control structure used for executing statements repeatedly
Debugging
Process of finding and fixing logical errors in a program
Escape character
Special notation that consists of a backslash followed by a character or combination of digits
String
Sequence of characters
IS-A relationship
The relationship that expresses the fact that a class is a special type of another class
Superclass
The class from which other classes are derived
Subclass
The class that specifies a superclass by implementing an improved functionality with additional methods and attributes
Inheritance
Type of relationship that enables the abstraction of common attributes in a superclass, therefore reducing repetition in design
Assignment compatibility
A variable of the type of a superclass can also be assigned to subclass objects
Extension
A concept that used by Java to implement inheritance
Overriding
The process of implementing an inherited method
Loop continuation condition
A boolean expression that controls the execution of a loop body
Counter-controlled loop
A loop that uses the control variable to count the number of iterations
Sentinel value
The special input value that signifies the end of the input
Sentinel-controlled loop
A loop that uses a sentinel value to control its execution
Control variable
A variable that is used in a loop to control how many times the loop body is executed and when the loop terminates
Pre-test loop
A loop where loop continuation condition is checked BEFORE the loop body is executed
- while loop
- for loop
Post-test loop
A loop where loop continuation condition is checked AFTER the loop body is executed
- do while loop
Nested loop
A loop that consists of an outer loop and one or more inner loops
Method definition
Method name, parameters, return value type, body
Value returning method
A method that returns a value
Void method
A method that does not return a value
Method body
A collection of statements that implement the method
Method invocation
Calling a method
Pass-by-value
If the argument is a variable, than a literal value, is passed to the method as a parameter
Method overloading
Two methods have the same name but different parameter list within one class.
Java determines which method is used by method signature