Java Review

    1. Is Java pass by value or pass by reference? If you pass an object into a method and the method changes a data member in the object, will the method caller see the change?
    2. What is the difference between == and .equals? Give an example of a scenario where you would use each.
    3. What is the difference between a constructor and a method?
    4. What do the keywords protected, public, and private signify and when is each used?
    5. What does the keyword static do and when is it used? What does it do in reference to a data member? What does it do in reference to a method?
    6. What does the keyword final do and when is it used? What is a final method, a final data member, and a final class?
    7. What is garbage collection?
    8. What are the primitive types in Java?
    9. How does an array differ from an ArrayList?
    10. What is the difference between checked and unchecked exceptions? How would you create a user-defined unchecked exception?
    11. What is an inner class?
    12. What is the difference between an abstract class and an interface?