When no access modifier is specified for a method or variable, the method or variable:
Which superclass members are inherited by all subclasses of that superclass?
Overriding a method differs from overloading a method because:
BigDecimal gives you control over how values are rounded. By default:
Which of the following statements is true?
The default equals implementation of class Object determines:
Which of the following keywords allows a subclass to access a superclass method even when the subclass has overridden the superclass method?
Which statement is true when a superclass has protected instance variables?
When a subclass constructor calls its superclass constructor, what happens if the superclass’s constructor does not assign a value to an instance variable?
When implementing a method, use the class’s set and get methods to access the class’s ________ data.
Consider the abstract superclass below:
Which of the following is false?
When a superclass variable refers to a subclass object and a method is called on that object, the proper implementation is determined at execution time. What is the process of determining the correct method to call?
Polymorphism enables you to:
Assigning a subclass reference to a superclass variable is safe ________.
Polymorphism allows for specifics to be dealt with during:
Which statement best describes the relationship between superclass and subclass types?
Which of the following statements is false?
A(n)______________class cannot be instantiated.
Which of the following statements about abstract superclasses is true?
Consider the statement below:
StringBuilder objects can be used in place of String objects if ________.
The String method substring returns ________.
Consider the statements below:
To find the character at a certain index position within a String, use the method ________.
Which of the following statements is true?
Given the following declarations:
Consider the Java segment:
Given the following declaration:
For
Which of the following does not implement interface List?
PriorityQueue method __________ inserts an element at the appropriate location in the queue.
Collections method __________ returns true if two Collections have no elements in common.
If no elements are in the Stack, method pop throws an __________.
Collections method sort that accepts a List as an argument. It sorts the List elements, which must implement the __________ interface.
Algorithm __________ randomly orders a List’s elements.
Which statement is false?
Which statement is false?
Which statement is false?
The classes and interfaces which comprise the collections framework are members of package ________.
The operands of an operator are evaluated ________.
When a generic class is instantiated without specifying a type argument, it is said to have a __________.
Class Number is ________ of both Integer and Double.
All of the following are true for both recursion and iteration except ________.
__________ enable programmers to specify, with a single method declaration, a set of related methods.
Which of the following statements about recursion are true?
After a fractal’s pattern is applied several times, the shape of the fractal will generally become ________.
All generic method declarations have a type parameter section delimited by __________.