quiz

Java quiz: Object Orientation

1. What is encapsulation:
a) the ability to make changes in your implementation without breaking the code of others
b) keep instance variables accessible foe everyone
c) create getters and setters rather then give direct access to instance variables

Java quiz: Declarations and Access

1. What is a Java program?
a) A collection of classes
b) A collection of objects talking to other objects by invoking each others methods
c) A template that describes the kinds of state and behavior that objects of its type support

2. Java components are:
a) types
b) classes
c) variables
d) objects
e) instances
f) methods