The Ins and Out-put's
Variables/Aliases
Arrays
Classes
Miscellaneous
100

What does the following segment of Java code print out?
 
double x = 4.5; int y = (int) x;
System.out.println(x+" "+y);  

4.5 4

100

A java construct used to store data.

What is a Variable?

100
A collection of primitive values OR objects.
What is an array?
100
The method that creates an instance of the class.
What is the Constructor?
100
It is described as object oriented, robust, secure, architecture neutral, portable, high performance, interpreted, threaded, and dynamic.
What is the Java Programming Language?
200

What does the following segment of Java code print out? 

int x = 7, y = 3;
int z = x/y + x%y;
if (z == x)
   y++;
if (z == y)
   x++;
System.out.println(x+" "+y+" "+z);

8 3 3

200
A class that is used to "wrap" primitive data into Objects.
What is a Wrapper Class
200
A collection of objects.
What is an Arraylist?
200
The class that all objects/classes are derived/inherited from.
What is the object class?
200
A program that translates Java Source code into Java Byte Code.
What is a Compiler (in Java)?
300

What does the following segment of Java code print out? 

for (int i=1; i<30; i = i + 3) {
   if (i%2 == 0)
      System.out.print((i/2)+" ");
 } System.out.println();

2 5 8 11 14

300
A Java term that is used to indicate that a reference does not currently refere to any object.
What is a Null Reference?
300
A sorting algorithm in which each value is placed in its final sorted position.
What is Selection Sort?
300
The ability to derive a new class from an existing one.
What is Inheritance?
300

The primary software construct in Java, An encapsulated collection of a class.

What is an Object?

400

What does the following code segment print out?
for (int i=5; i>0; i--) {

   for (int j=0; j<i; j++) {

      System.out.print((2*i-j) + " ");

   } System.out.println();

}

10 9 8 7 6

8 7 6 5

6 5 4

4 3

2

400

A common runtime exception that occurs when you try to access an element at an index that is outside the valid range of a data structure

What is an ArrayIndexOutOfBoundsException?

400
A sorting algorithm in which each value is inserted in a sorted subset of the entire list.
What is Insertion Sort?
400

When there are multiple methods with the same name but a different signature in the same class.

What is Overloading?

400

A method that belongs to a class, but it does not belong to an instance of that class and this method can be called without the instance or object of that class.

What is a Static Method?

500

What does the following segment of Java code do in general? 

Scanner console= new Scanner(System.in); System.out.println("Enter n.");
int n = console.nextInt();
int total = 0;
while (n > 0) {
  total = total + n%10;
  n = n/10;
} System.out.println(total);

This segment of code prints out the sum of the digits of the original value of n entered by the user.

500
The smallest primitive data type.
What is a Char
500
An array that uses two indices to specify the location of an element.
What is a Two-Dimensional Array
500
The class that cannot be instantiated and cannot be used unless another class derived from it is created?
What is the abstract class?
500
The areas within a program in which an identifier such as a variable, can be referenced.
What is "scope"?