Java Programming Exam 3 UPDATED ACTUAL Exam Questions
and CORRECT Answers
A(n) ____ parameter is one that is undeclared and that gets its value automatically. - implicit
A class that instantiates objects of another prewritten class is known as a class client or class
____. - user
The ____ class access modifier means that access is limited to another class to which the class
belongs. - private
The ____ class access modifier means that access to the class is limited to the class and to any
classes derived from the class. - protected
If you do not provide an access specifier for a class field, its access is ____ by default. - private
The set of contents of an object's instance variables also is known as its ____. - state
The ____ class access modifier means that access is limited to the assembly (a group of code
modules compiled together) to which the class belongs. - internal
As an alternative to repeating code in multiple constructors, a ____ indicates that another
instance of a class constructor should be executed before any statements in the current
constructor body. - constructor initializer
When a method ____ another, it takes precedence over the method, hiding the original version. -
overrides
A(n) ____ constructor will never take any parameters. - default
, ____ represents the degree to which a system is resilient to stress and able to maintain correct
functioning. - robustness
An exception of the ____ class is thrown when an attempt is made to store an element of the
wrong type within an array. - System.ArrayTypeMismatchException
____ is the type of exception automatically generated if there is a problem opening a file, reading
data from a file, or writing to a file. - IOException
An exception of the ____ class is thrown when an ongoing operation is aborted by the user. -
System.Data.OperationAbortedException
The system of passing an exception through a chain of calling methods is called ____ the
exception. - propagating
The ____ block is used frequently with file input and output to ensure that open files are closed. -
finally
Each ____ block can "catch" one type of Exception. - catch
The memory location where the computer stores the list of locations to which the system must
return is known as the ____. - call stack
The Exception class contains a read-only property named ____ that contains useful information
about an Exception object. - message
When you catch an Exception, you can print the value of the ____ property to display a list of
methods in the call stack so you can determine the location of the Exception. - StackFace
and CORRECT Answers
A(n) ____ parameter is one that is undeclared and that gets its value automatically. - implicit
A class that instantiates objects of another prewritten class is known as a class client or class
____. - user
The ____ class access modifier means that access is limited to another class to which the class
belongs. - private
The ____ class access modifier means that access to the class is limited to the class and to any
classes derived from the class. - protected
If you do not provide an access specifier for a class field, its access is ____ by default. - private
The set of contents of an object's instance variables also is known as its ____. - state
The ____ class access modifier means that access is limited to the assembly (a group of code
modules compiled together) to which the class belongs. - internal
As an alternative to repeating code in multiple constructors, a ____ indicates that another
instance of a class constructor should be executed before any statements in the current
constructor body. - constructor initializer
When a method ____ another, it takes precedence over the method, hiding the original version. -
overrides
A(n) ____ constructor will never take any parameters. - default
, ____ represents the degree to which a system is resilient to stress and able to maintain correct
functioning. - robustness
An exception of the ____ class is thrown when an attempt is made to store an element of the
wrong type within an array. - System.ArrayTypeMismatchException
____ is the type of exception automatically generated if there is a problem opening a file, reading
data from a file, or writing to a file. - IOException
An exception of the ____ class is thrown when an ongoing operation is aborted by the user. -
System.Data.OperationAbortedException
The system of passing an exception through a chain of calling methods is called ____ the
exception. - propagating
The ____ block is used frequently with file input and output to ensure that open files are closed. -
finally
Each ____ block can "catch" one type of Exception. - catch
The memory location where the computer stores the list of locations to which the system must
return is known as the ____. - call stack
The Exception class contains a read-only property named ____ that contains useful information
about an Exception object. - message
When you catch an Exception, you can print the value of the ____ property to display a list of
methods in the call stack so you can determine the location of the Exception. - StackFace