Section TY3
Class Meeting: 03:40 - 05:20pm, Tuesday and Thursday
Classroom: Room 130 Ingersoll Hall Extension (IA-130)
Acknowledgement
This review guide is adopted from Professor Gerald Weiss with minor revision.
Review Topics I (1 of 3)
The Structure of the Exam
- For all topics, you should be able to trace, analyze, and write Java code.
- Questions will for the most part consist of:
- presenting you with a piece of code and asking you what is output — or what the value of one or more variables are — once the code is executed
- presenting you with a problem description and asking you to write the corresponding code
- asking you what is wrong with a piece of code and/or asking you to repair it
- presenting you with a piece of code and asking you to trace the value of one or more variables as the code is executed
- There may also be some multiple-choice and short answer questions.
- Questions will for the most part consist of:
- Although you will not be asked for definitions of terms, you should know them as they will be used in the text of the questions.
- While the book is a good supplement, you are only responsible for topics and material in the lecture notes and the various exercises and assignments. These are a great way for you to prepare yourself for the exam.
Review for CISC 1115
- Data input techniques (header/ trailer values, eof)
- First-time and previous-element logic
Classes
- Class definitions
- Behavior/state — instance variables and methods
- Constructors
- Default constructors
- Overloaded constructors
this
and overloading constructor
- References, reference variables and types, primitive variables and type
- Data access —
public
/private
- Instances/objects — creating, accessing
- Composition
- Arrays of class objects
- Arrays as instance variables of classes
- Static (class) methods and variables
toString
,equals
, andread
methods
Exception Handling
- Throwing, catching exceptions
- try/catch blocks
CodeLab
- CodeLab — Class Definitions, Exception Handling