Skip to main content

CISC 3115 Introduction To Modern Programming Techniques

Fall 2018

by Professor Hui Chen, CUNY Brooklyn College

Section TY3

Class Meeting: 03:40 - 05:20pm, Tuesday and Thursday
Classroom: Room 130 Ingersoll Hall Extension (IA-130)


This review guide is adopted from Professor Gerald Weiss with minor revision.

Review Topics II (2 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.
  • 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.

Topics in Review I


  • Superclasses/subclasses
  • protected
  • up/downcasting
  • overriding methods


  • Rule of Polymorphism: method resolution is based on the (runtime/dynamic) type of the object and not the (static/compile-time) type of the receiver reference variable.
  • CodeLab — OOP