Match the following terms to the definition below. Note that there are more term
ID: 3598708 • Letter: M
Question
Match the following terms to the definition below. Note that there are more terms than definitions.
accessor
common
default
delete
destructor
exact
first
JVM
last
mutator
name
no
non-static
package
predicate
private
public
return types
rounded
services
signatures
single static import declaration
static
static import on demand
truncated
views
Which term from the above word bank matches each description below?
A class’s _____ variables and methods are not accessible to its clients.
The this reference cannot be used in a _____ method
If no access modifier is specified for a method or variable declared in a class, then it is considered to have ____ access.
If a constructor wants to call another constructor, that call must be the ____ statement.
By default, all BigDecimal calculations are ____.
______ performs automatic garbage collection to reclaim memory occupied by objects that are no longer in use.
The public methods of a class are also known as the class’s public _____
Set methods are commonly called _____ methods
The complier differentiates overloaded constructors by their ______
If no constructors are provided in a class, then the compiler creates ______ constructor.
A _____ imports all static members of a class.
Explanation / Answer
A class’s ___private__ variables and methods are not accessible to its clients.
Explanation: A class’s private variables and methods are not accessible to its clients. because Private instance variables are to an object local variables are to a function
The this reference cannot be used in a __static___ method
Explanation: this refers to the object instance. There is no object instance in a call of a static method.
If no access modifier is specified for a method or variable declared in a class, then it is considered to have __public__ access.
Explanation:A variable or method declared without any access control modifier is available to any other class in the same package. The fields in an interface are implicitly public static final and the methods in an interface are by default public.
If a constructor wants to call another constructor, that call must be the __first__ statement.
Explanation: Constructor call must be the first statement in a constructor
By default, all BigDecimal calculations are _rounded___.
Explanation: BigDecimal Values In addition to precise calculations have default scale and rounding mode
__destructor____ performs automatic garbage collection to reclaim memory occupied by objects that are no longer in use.
Explanation: destructor is a special methos used by garbage collector to reclaim memory occupied by objects that are no longer in use.
The public methods of a class are also known as the class’s public _services____
Explanation: The public methods of a class are also known as the class's public services or public interface.
Set methods are commonly called __mutator___ methods
Explanation:Set methods are also commonly called mutator methods, because they typically change an object's state i.e., modify the values of instance variables.
The complier differentiates overloaded constructors by their __return type____
Explanation: Compiler differentiates which constructor is to be called depending upon the number of parameters and their sequence of data types.
If no constructors are provided in a class, then the compiler creates _default_____ constructor.
Explanation: If there is no constructor in a class, compiler automatically creates a default constructor
A __static import on demand___ imports all static members of a class.
Explanation:A static-import-on-demand declaration imports all static members of a type.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.