Final Exam Notes

 

This is not intended to be an exhaustive study guide, but may help remind you of certain topics that need to be understood.  However, your main ‘study guide’ should be the numerous hints I have given throughout the quarter of the types of questions I will ask and the concepts I would like you to have some mastery of.

 

·         Be able to create and invoke methods that accept arrays / return arrays.  Eg: Create a method that accepts two arrays of integers and return true if the arrays are the same size and contain identical values.

·         Given an API with methods that you have not seen before, be able to invoke some of the methods.  Eg: Be able to invoke methods from the class ‘Arrays’. You will not be given highly confusing or complex methods. However, you should be sure to practice invoking various methods from the class String, Arrays, ArrayList.

·         Be able to work with methods from the class ‘ArrayList’ – not on exam of Spring 2012

·         Be able to do basic composition. Eg:     s1.getName().setLastName(“Smith”);  – not on exam of Spring 2012

·         Be able to read a basic UML diagram.

·         Be comfortable creating a user-defined class. I will ask you to write one or more “typical” methods from a user-defined class on your exam.   Eg: Given a basic UML diagram, create the ‘equals’ method for a class.

·         Understand basic principles of exception handling such as the difference between checked and unchecked exceptions, use of try/catch/finally blocks, etc.

·          Know how to retrieve values from GUI text fields (JTextField) and to set values of those fields.

·         Know when and how to use parseInt / parseDouble.

·         Know how to work with a basic 2-dimensional array.

·         Know how to create subclasses from a superclass including invoking the parent class’ constructor