Docsity

Java Vocabulary: Key Concepts and Definitions, Exams of Computer Science

Toggle sidebar
bg1
JAVA VOCABULARY 2025
inheritance - ANSWER relationship between a subclass and its superclass, the
subclass is more specialized than the superclass
constructor - ANSWER a method that initializes a newly instantiated object
getter - ANSWER a method that gets parameters
setter - ANSWER a method that sets parameters
object - ANSWER a value of a class type (Rectangle box = new ractangle -->
rectangle is the Object)
reference - ANSWER a value that denotes the location of an object in memory
(Rectangle box = new Rectangle --> box is the reference to the object)
nested loops - ANSWER a loop that is contained within another loop
typecasting - ANSWER refers to changing an entity of one datatype into
another
condition - ANSWER a circumstance that must be met
pf3
pf4
pf5

Partial preview of the text

Download Java Vocabulary: Key Concepts and Definitions and more Exams Computer Science in PDF only on Docsity!

JAVA VOCABULARY 2025

inheritance - ANSWER relationship between a subclass and its superclass, the subclass is more specialized than the superclass constructor - ANSWER a method that initializes a newly instantiated object getter - ANSWER a method that gets parameters setter - ANSWER a method that sets parameters object - ANSWER a value of a class type (Rectangle box = new ractangle --> rectangle is the Object) reference - ANSWER a value that denotes the location of an object in memory (Rectangle box = new Rectangle --> box is the reference to the object) nested loops - ANSWER a loop that is contained within another loop typecasting - ANSWER refers to changing an entity of one datatype into another condition - ANSWER a circumstance that must be met

overloading - ANSWER a method with the same name, but different arguments overriding - ANSWER redefining a method in a subclass compiler - ANSWER a program that translates code into machine language base class - ANSWER a general class, from which a more specialized class inherits derived class - ANSWER a class that inherits variables and methods from a superclass but adds instance variables, adds methods, or redefines methods polymorphism - ANSWER selecting a method among several methods that have the same name on the basis of the actual types of implicit parameters ArrayList - ANSWER a class that implements a growable array of objects String - ANSWER a sequence of characters for-each-loop - ANSWER for (Type variable: collection){ Statement } do-while-loop - ANSWER do{ statement }while(condition)

Implicit - ANSWER the object on which a method is invoked. For example, in the call x.f(y), the object x is the implicit parameter of method f primitive types - ANSWER a number type(int, double) or boolean construction - ANSWER setting an newly allocated object to an initial state operator - ANSWER a symbol denoting a mathematical or logical operation mutator method - ANSWER a method that changes the state of the object accessor method - ANSWER a method that accesses an object but does not change it immutable - ANSWER cannot be changed object reference - ANSWER a value that denotes the location of the object in memory access specifier ANSWER A keyword indicating the accessibility of a feature, such as private or public return type ANSWER Such as double or void instance ANSWER A variable defined in a class which each object of the class has a separate value of

encapsulation ANSWER Hiding of implementation details simple statement - ANSWER a statement consisting entirely of an expression compound statement - ANSWER a statement like if or while that consists of multiple components, such as a condition and a body arrays - ANSWER a group of values of the same type stored in back-to-back memory locations element - ANSWER data assigned to values (ex. Data[0]) wrapper classes ANSWER a class that encapsulates a primitive type value, such as an integer auto-boxing ANSWER the process of automated conversion of a value of a primitive type into an object of a corresponding wrapper class reference ANSWER a variable's value that denotes the address of an object in memory side effects ANSWER the result of a method execution besides returning a value preconditions - ANSWER a condition that must be true when a method is called if the method is to work correctly postconditions - ANSWER a condition that is true after a method has been called