CSCI 3134

Review for exam #2

A.     To prepare for the exam ¨C

1.       Review thoroughly chapters 3, 4, 5, 7, 8, 9, 10, 11, and 17.

2.       Review labs 3, 4, 5, and 6.

3.       Review the in-class exercises.

4.       Review related sample programs available at http://sceweb.sce.uhcl.edu/yang/teaching/JavaProgrammingExamplesandRelatedTopics.htm.

5.       Use the lecture notes as guide to study the following topics:

A.      Java applications development: JDK commands, the NetBeans environment and concepts (projects, packages, source files)

B.      Basic data structures: Arrays

C.      Basic program control structures: selections (if ¡­ else ¡­, switch), iterations (while, for, do ¡­ while)

D.      Files and streams for persistent data processing

E.       Program design using UML: activity diagrams, class diagrams, associations, inheritance hierarchy

F.       Object-oriented programming and related concepts

1)      The relationships between classes, instance variables (fields, attributes), and methods

2)      Instance variables vs static variables vs local variables

3)      Instance methods vs static methods

4)      Access modifiers for instance variables and methods

5)      Access modifiers for classes

6)      The final keyword

7)      Inheritance: subclasses, superclasses, inheritance hierarchy

8)      Polymorphism in Java: operator/method overloading, method overriding, abstract vs concrete methods/classes, interface

G.     Exceptions and exception handling

H.      Basic concepts of Java applets

6.       Use the chapter-end exercises to assess your own preparation

 

B.      Types of questions ¨C

a)      Fill in the blanks

b)      Tracing the execution and screen output of a program or program segments

c)       Program design (using pseudocodes, flowcharts, and UML class diagrams)

d)      Definition of simple Java classes and methods