-
In return value; value is the value returned.
A) TrueB) False
-
-
-
Obtaining objects of a class is a ____ -step process
A) oneB) TwoC) ThreeD) FourExplanation: Obtaining objects of a class is a two-step process. First, you must declare a variable of the class type. This variable does not define an object. Instead, it is simply a variable that can refer to an object. Second, you must acquire an actual, physical copy of the object and assign it to that variable.
-
The new operator dynamically allocates memory for an object
A) TrueB) False
-
When a member is declared static, it CANNOT be accessed before any objects of its class are created, and without reference to any object
A) TrueB) FalseExplanation: When a member is declared static, it can be accessed before any objects of its class are created, and without reference to any object. You can declare both methods and variables to be static.
-
-
What is the significance of wait() method ?
What is the significance of wait() method with respect to Object class, not in Thread class?
-
-
-
Finalize( ) is only called just prior to _________
A) InitialisationB) RuntimeC) Garbage CollectionD) None of the above
-
-
-
-
Deallocation of memory in Java is called Garbage Collection
A) TrueB) False
-
-
-
In general, there are _________ ways that a computer language can pass an argument to a subroutine
A) OneB) TwoC) ThreeD) FourExplanation: In general, there are two ways that a computer language can pass an argument to a subroutine. The first way is call-by-value. The second way an argument can be passed is call-by-reference.
-
J2SE 5 has added a new feature that simplifies the creation of methods that need to take a variable number of arguments. This feature is called _______
A) varargsExplanation: varargs - It is short for variable-length arguments.
Java Classes Questions
Ans