-
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.
-
-
-
-
Subclass of Component Class
How to List or find Subclass of a given Component Class?
-
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.
-
-
Deallocation of memory in Java is called Garbage Collection
A) TrueB) False
-
Finalize( ) is only called just prior to _________
A) InitialisationB) RuntimeC) Garbage CollectionD) None of the above
-
-
-
-
-
-
-
-
-
-
Java Classes Questions
Ans