Last Revised 7/13/01 at 2:00pm

Review Guide for Final Exam

CSC 224 -- Java for Programmers

Terms and Concepts

Primitive datatypes (int, long, single, double, char, boolean), instance variables , local variables, initialization of variables, short circuit and complete evaluation of operators, if..else statements, while loops, for loops, switch statements, method, parameter (formal parameter), argument (actual parameter), return value, class, instance variable (private, public, protected, static), local variable, constructor, overloaded method, signature, reference variable, dynamic creation of objects, reference count, inheritance, terms for base and derived classes, calling constructors or methods of the parent class, overriding methods, input from and output to text files on disk, formatting output, interfaces, AWT (Abstract Windows Toolkit), Swing, frame based user interfaces, buttons, radio buttons, checkboxes, text field, label, combo box, panel, FlowLayout manager, GridLayout manager, ActionListener interface, file chooser, array (declaration, space allocation, and initialization or assignment), arrays of objects, implementing a frame based user interface, action events, errors, exceptions (checked and unchecked exceptions), throwing an exception, catch/try blocks, window events, mouse events, drawing on a panel, relational database, tables, rows, columns, SQL select statements, setting up an ODBC database on a PC, constructing an SQL statement to extract data from a database table, the Vector collection class, simple recursive methods, recursion tree.

Java Keywords and Operators

class, private, public, static, main, class, private, public, static, {, } String, System.out.println, System.out.print, int, long, float, double, char, boolean, final, +, -, *, /, cast operators, logical operators (&&, ||, !), comparison operators (==, !=, <, <=, >, >=), increment operators (++x, x++), decrement operators (--x, x--), assignment operators (=, +=, -=, *=, /=, %=), tertiary comparison operator (? :), new, instanceof), if, else, switch, case, while, for, return, extends, implements, super, this, inner class, Integer.parseInt, Double.parseDouble, String class (length, charAt, valueOf, toString, equals), DecimalFormat class (format), Keyboard class (readInt, readDouble, readString, readBoolean), command line arguments, Graphics (setColor, drawLine, drawRect, fillRect, drawOval, fill Oval, drawString), paintComponent, repaint, FileReader, BufferedReader, readLine, StringTokenizer class (hasMoreTokens, nextToken), FileWriter, BufferedWriter, PrintWriter (print, println, close), FileChooser, File, JFrame, JPanel, JTextField, JLabel, JButton, JComboBox, JFileChooser, ActionListener (actionPerformed), Exceptions (IOException, FileNotFoundException, DataFormatError, NumberFormatException), throws, try, catch, WindowListener (windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowOpened), MouseListener (mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, Structured Query Language (SQL), Java Database Connectivity (JDBC), Open Database Connectivity (ODBC), DriverManager (getConnection), Connection (createStatement, close), Statement (method executeQuery), ResultSet (next, getString), Forward Only, Vector collection class (elementAt, addElement, removeElement, size).

Be Able To:

  1. Answer questions about the preceding terms an keywords. (Short answer format).

  2. Predict the output of a Java application.

  3. Find errors in Java source code.

  4. Given a problem, write a short Java application that solves it.

  5. Draw the recursion tree for a program calling a recursive method.