-
A static class member belongs to the class,
not objects instantiated from the class.
-
When a field is declared static, there will be only one copy of the field in memory, regardless of the number of instances:
of the class that might exits.
-
When a class contains a static method, it isn't necessary for an instance of the class to be created:
to execute the method.
-
Declaring an object static, it belongs to the class and may be called without any instances of:
the class being in existance.
-
Two or more method in a class may have the same name as long as their:
signatures are different.
-
In method-overloading, multiple methods have the same name but:
use different parameters.
-
The process of matching a method call with the correct method is known as:
binding.
-
A method's signature consists of the method's name and the data types of the method's parameters:
in the order that they appear.
-
More than one constructor may be defined for a:
class.
-
The method that returns a string that represents that state of an object:
the toString
-
The constructor that accpets an object of the same class as an argument is:
a copy constructor.
-
When an instance of a class is a field in another class an:
aggregation occurs.
-
Making an instance of one class a field in another class is called:
object aggregation.
-
When you make a copy of the aggregate object and make copies of the objects it references is known as:
a deep copy.
-
When you make a copy of an aggregate object but only make a reference copy of the objects is references is known as:
a shallow copy.
-
An object that does not provide a way to change its contents is an:
immutable object.
-
This type of method cannot access any nonstatic member variables in its own class.
static method.
-
The process of matching a method call with the correct method is known as:
binding.
-
If you write this method for a class, Java will automatically call it any time you concatenate an object of the class with a string.
toString method.
-
This is the name of a reference variable that is always available to an instance method and refers to the object that is calling the method.
this reference.
-
Assuming the following declarations exits:
enum Seasons { SPRING, WINTER, SUMMER, FALL }
what is the fully qualified name of the FALL constant?
Seasons.FALL
-
A class that is defined inside of another class is called an:
inner class.
-
If a class has this method, it is called automatically just before an instance of the class is destroyed by the JVM.
finalize method.
-
A static member method may refer to nonstatic member variables of the same class at any time (true/false).
False.
-
A class may not have more than one constructor (true/false).
False.
-
A method cannot return a reference to an object (true/false).
False.
-
You can declare an enumerated data type inside a method (true/false).
False.
-
enum constants have a toString method (true/false).
True.
|
|