Access, Encapsulation, and Static Methods
Inheritance and Polymorphism
Debugging
2D Arrays
100

What is a static method?

Variables that belong to the class itself rather than a particular object.

100

Keyword used to control child class access to parent class members.

Protected

100

What is a symbol that is often forgotten at the end of a statement, leading to syntax errors?

Semicolon

100

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

200

What is Encapsulation?

A technique that is used to keep implementation details hidden from other classes.

200

Keyword used to overrule parent class methods in the child class.

Override

200

What is an error found by the compiler?

Syntax Error

200

What is the syntax for changing an element in a 2d array at the 1st row and 3rd column?

arrayName[1][3] = value;

300

Accessor Methods return the value of a ______ variable.

Private

300

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

300

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?

300

What is the syntax for changing an element in a 2d array at the 3rd column and the 4th row?

arrayName[4][3] = value;

400

What do Mutator Methods do?

Reset the value of a private variable

400

In Java, polymorphism allows us to put instances of different classes that share a parent class together in these two things.

Array and ArrayList

400

What statement allows you to define a block of code to be executed if an error occurs in the try block?

Catch Statement

400

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.

500

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.

500

Method to modify parent class's constructor.

Super

500

What is an error otherwise known as?

Exception

500

What is the syntax for creating a 2d array with 4 columns and 12 rows of integers?

int[][] arrayName;

arrayName = new int [12][4]

M
e
n
u