What is a static method?
Variables that belong to the class itself rather than a particular object.
Keyword used to control child class access to parent class members.
Protected
What is a symbol that is often forgotten at the end of a statement, leading to syntax errors?
Semicolon
What is the element at the 0th row and 3rd Column?
int[][] intMatrix = {
{2, 1, 7, 1, 9},
{2, 4, 6, 8, 0},
{9, 8, 7, 6, 5}
};
1
What is Encapsulation?
A technique that is used to keep implementation details hidden from other classes.
Keyword used to overrule parent class methods in the child class.
Override
What is an error found by the compiler?
Syntax Error
What is the syntax for changing an element in a 2d array at the 1st row and 3rd column?
arrayName[1][3] = value;
Accessor Methods return the value of a ______ variable.
Private
Java principle where you can use a child class object like a member of its parent class but also give it its own traits.
Polymorphism
This statement allows you to define a block of code to be tested for errors while it is being executed.
What is a Try statement?
What is the syntax for changing an element in a 2d array at the 3rd column and the 4th row?
arrayName[4][3] = value;
What do Mutator Methods do?
Reset the value of a private variable
In Java, polymorphism allows us to put instances of different classes that share a parent class together in these two things.
Array and ArrayList
What statement allows you to define a block of code to be executed if an error occurs in the try block?
Catch Statement
What is row major order?
An ordering of 2D array elements where traversal occurs across each row from the top left corner to the bottom right.
What is the difference between public and private keywords?
Private restricts access to only the class it was declared in, while public allows access from any class.
Method to modify parent class's constructor.
Super
What is an error otherwise known as?
Exception
What is the syntax for creating a 2d array with 4 columns and 12 rows of integers?
int[][] arrayName;
arrayName = new int [12][4]