• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/25

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

25 Cards in this Set

  • Front
  • Back
Superclass methods with this level of access cannot be called from subclasses.
private
Which of the following is not true of ExecutorService?
It is an object that can be run in a separate thread
Which of the following statements is false?
Information in the memory unit is persistent—it is retained when the computer's power is turned off.
Which of the following statements is true?
Compilers translate high-level language programs into machine language programs.
Collections method sort that accepts a List as an argument sorts the elements of a List, which must implement the __________ interface.
Comparable
Which statement correctly passes the array items to method takeArray? Array items contains 10 elements.
takeArray( items )
In this question, assume a class, Book, has been defined. Which set of statements creates an array of Book objects?
Book[] books;books = new Book[ numberElements ];
Attempting to access an array element out of the bounds of an array, causes a(n)
ArrayIndexOutOfBoundsException
When should a program explicitly use the this reference?
Accessing a field that is shadowed by a local variable.
Failure to prefix the superclass method name with the keyword super and a dot (.) separator when referencing the superclass’s method causes ________.
infinite recursion
Which of the following segments is a proper way to call the method readData four times?
int i = 0;while ( i < 4 ) { readData(); i = i + 1;} // end while
Every Java application is composed of at least one
public class declaration
Having a this reference allows:
All of the above.
When the compiler translates a generic method into Java bytecodes, it uses __________ to replace the type parameters with actual types
erasure
Which of the following is a valid fully qualified name?
java.util.Scanner
________ is a graphical language that allows people who design software systems to use an industry stan¬dard notation to represent them.
The Unified Modeling Language
Using the protected keyword gives a member:
package access
An uncaught exception:
is an exception that occurs for which there are no matching catch clauses.
Arrays are:
fixed-length entities.
A(n) ________ enables a program to read data from the user.
Scanner
What do the following statements do?

double[] array;


array = new double[14];

Create a double array containing 14 elements.
When a __________ method or block is running on an object, the object is locked so no other such method can run on that object at the same time.
synchronized
What is the default value of a reference?
null
Which keyword is used to specify that a class will define the methods of an interface?
implements
__________ enable programmers to specify, with a single method declaration, a set of related methods.
generic methods