• 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/17

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;

17 Cards in this Set

  • Front
  • Back
Indexing in an array always starts at:
0
The length item in an array refers to a _.
Public field
Which of the following statements is true of 2D arrays in java?
1. A 2D array must have the same number of columns in each row
2. A 2D array is a primitive data type in Java, like an int or a double
3. A 2D array is an array of arrays, where each row element contains a reference to a 1D array and thus can have a different number of columns in each row
4. None of the above
3. A 2D array is an array of arrays, where each row element contains a reference to a 1D array and thus can have a different number of columns in each row
The length item in a String refers to a_.
Public method
All source code in Java must end in a __ suffix.
.java
What is an object?
An instantiation of a class
An array can store a group of values, but each value must be:
The same data type
What relationship does the following specify:

public class MyClass extends YourClass
MyClass is-a YourClass, or inheritance
What relationship does the following code specify:

public class MyClass {
private String name;
}
MyClass has-a name, or containment
Given an array declared as (double nums[25];) what is the maximum index value?
24 (starts at 0)
How many squares can be referred to by the following 2D array?
Square board = new Square[10][10];
100
If the following 2 method headers shown below, both defined in the same class, what OOP concept is this?

public void print(String str)
public void print(Object obj)
Method overloading: two methods with the same return data type, but different argument
If an array is initialized as follows, what is stored at myTest[2]

int [] myTest = {5, 10, 15, 20, 25, 30, 35};
10
True or false: Polymorphism is a concept which relies on method overloading.
FALSE
What is a mutator method?
A method that sets the value of a private data attribute
What does the following logical expression evaluate to?

5 < 6 && 6>8
FALSE
True or False: All classes written in Java inherit from the Object class.
TRUE