| 1. |
Variables
- What is the difference between an instance variable and a class variable?
How are they accessed?
- What kind of variable would be used for a constant (such as the weight of an object)?
Where and how are these type of variables declared?
- What kind of variable would be used for a varying amount (such as the exchange rate from Australian to US dollars)?
Where and how are these type of variables declared?
- What kind of variable would be used for a loop counter?
Where and how are these type of variables declared?
- Why should you write:
int[] a;
rather than (as many texts do):
int a[];
|
| 2. |
Methods
- What is the difference between an instance method and a class method?
How are they accessed?
- What do the access modifiers
public, protected, (package), and private mean?
- What is meant by each part of the statement:
public static void main(String[] args)
- What kind of "thing" is each part of the statement:
System.out.println(myObject);
How does it work?
|
| 3. |
Logic
Which of the following are equivalent?
if (!A && !B) instructionBlock1;
else instructionBlock2;
if (!A || !B) instructionBlock2;
else instructionBlock1;
if (!A || !B) instructionBlock1;
else instructionBlock2;
if (!(A || B)) instructionBlock1;
else instructionBlock2;
if (!(A || B)) instructionBlock2;
else instructionBlock1;
if (!(A && B)) instructionBlock1;
else instructionBlock2;
if (!(A && B)) instructionBlock2;
else instructionBlock1;
|
| 4. |
Packages
- What is a package?
- What is meant by the statement:
import java.io.*;
|
| 5. |
Exceptions
- What is the difference between a checked exception and an unchecked exception?
- What options exist for dealing with exceptions?
|
| 6. |
Interfaces
- What is the difference between an interface and an abstract class?
- What differences are there between implementing an interface and extending an abstract class?
|