-
-
-
Static and Non-Static are the two types of nested classes
A) TrueB) False
-
-
The type of data returned by a method need not be compatible with the return type specified by the method
A) TrueB) FalseExplanation: The type of data returned by a method must be compatible with the return type specified by the method. For example, if the return type of some method is boolean, you could not return an integer
-
-
-
A stack stores data using first-in, last-out ordering.
A) TrueB) False
-
-
Stacks are controlled through two operations traditionally called ___ and _____
A) Push and Pull B) Push and PopC) Pop and Pull D) Pop and Peep
-
-
-
-
-
-
-
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.
Java Classes Questions
Ans