A+)
All types that are not one of the eight primitive types are ___________________, including important
entity types such as strings, arrays, and, streams. - Answers reference type
A _______________ variable in java is a variable that somehow stores the memory address where an
object resides. - Answers reference
In Java, the only
operators that are allowed for reference types (with one exception made for
_____________) are assignment via = and equality comparison via == or != - Answers Strings
The dot operator is used to select a _________________ that is applied to an object - Answers method,
For
instance, suppose we have an object of type Circle that defines an area
method. If theCircle references a Circle, then we can compute the area of the
referenced Circle (and save it to a variable of type double) by doing this:
double theArea = theCircle.area( );
new is used to construct a new __________________ - Answers object
What is garbage collection? - Answers In Java, when a constructed
object is no longer referenced by any object variable, the memory it consumes
will automatically be reclaimed and therefore be made available.
There is no less than operator available for any _________________. Instead a named method, such as
lessThan, must be created - Answers Object
How do operators work with string objects? - Answers In accordance with the ban on operator
overloading, relational operators
(<, >, <=, and >=) are not defined for the String type. Further, == and != have the
typical meaning for reference variables. For two String objects lhs and rhs,
for example, lhs==rhs is true only if lhs and rhs refer to the same String
object. Thus, if they refer to different objects that have identical contents,
lhs==rhs is false. Similar logic applies for !=