To Exam Info
IT 313 -- Final Review Guide
Bring to Final:
- Two 8.5" × 11" pages of crib notes.
- Copies of your submissions for projects 4, 5, 6a, 6b, 7, and 8.
- Some Java Classes and Methods document.
- No calculator (not needed)
Possible Final Exam Format
- Multiple choice questions. Give an optional reason or show your work for each question.
- Short essay questions. Choose one question to answer out of three. For full credit,
write in complete sentences with an introduction and conclusion.
- Find the errors in Java class files.
- Predict output of Java class files.
- Write traditional and unit tests for a class or classes, given documentation of the classes.
The classes will be either instructor written or taken from the Java Class Library.
A template will be provided for the JUnit test class.
Definitions
- Escape characters ( \n, \t, \f, \', \", \\ ), primitive datatypes, class, object, instance variable,
public, private, default or package accessibility, local variable, instance method, static method, startup method (main), command
line argument, standard IO streams (System.in,
System.out, System.err), stream terminator (Control-D), casts for numeric types
and char (narrowing, widening), refactoring, method definition, method invocation, parameter,
argument, return value, void, exception, catch, try, finally, wrapper classes
corresponding to primitive types (Integer, Double, Character, Boolean), autoboxing, inheritance, overloading,
overriding, is-a test, UML
diagram, interface, serialization, software pattern, JDBC.
Java Keywords
boolean break char class double else
extends final float for private implements
import int interface new package private
protected public return static super this
throws try void while
Java Operators
Arithmetic: + - * / %
Comparison: < <= > >= == !=
Logical: && || ^ !
Assignment: = ++ -- += -= *= /= %=
Member Selection: .
Array Lookup: [ ]
Consructor Invocation: new
Classes and Methods:
See the Java Class Library for details about methods.
- String charAt, compareTo, format (static), equals, indexOf, lastIndexOf, length, split,
toLowerCase, toUpperCase, valueOf (static)
- Integer parseInt (static)
- Double parseDouble (static)
- Scanner
Scanner (System.in, File, or String), close, hasNext, nextLine
- PrintWriter
close, print, printf, println
- Object Object, equals, toString
- ArrayList
add, clear, get, indexOf, isEmpty, remove, set, size, toString
- HashSet
clear, containsKey, containsValue, entrySet, get, put, remove, size, toString,
values
Interfaces
See the Java Class Library for details about method signatures.
- Comparable<T> compareTo
- Iterable<T> iterator
- Iterator<T> hasNext, next
- Observer update
- Serializable
<no methods required>
Software Patterns
- Factory Iterator Observer Singleton State Strategy
Java Related Technologies
- Ant, Android, AWT, Gradle, Kotlin, Maven, Java Server Pages, JVM, Swing
JDBC Classes and Interfaces
- Classes: DriverManager Statement
- Interfaces: Connection ResultSet
- SQL Statements: create
insert select
- SQLite Commands: .exit .open .read .save
.tables
Java Classes used for Android
Be Able To:
- Answer multiple choice questions with optional reason or work.
- Answer short essay questions.
- Predict the output of Java source code.
- Find errors in Java source code.
- From the description of a class, determine the UML diagram.
- Write Java class methods based on a UML diagram.
- Write traditional test or unit test code for a builtin Java class.
- Format a string using the String.format or
System.out.printf methods.
- Explain the roles of Java related technologies.