EXAMINATION #1
Exam Review
Chapter 7 Input/Output and Exception Handling
- Reading and writing text file - Scanner class and PrinterWriter class. Close file
- Text input and output - methods next and hasNext
- Read character
- Class Character
- Reading lines - method nextLine
- Scanning a string
- Convert string to numbers - methods parseDouble, parseInt
- Formating output - printf - format flags and format types
- Exception handling
- Throwing exceptions
- Catching exceptions
- Cheched and unchecked exceptions
- Try, catch and finally
Chapter 9 Inheritance and interface
- Implement subclassess
- Overriding methods
- Polymorphism
- Abstract class and final class
- Abstract methods and final methods
- Using super
- private, protected and public members
- Converting between subclass and superclass
- Polymorphism and inheritance
- Method equals and clone
- Deep copy vs shallow copy
- Composition
- UML diagram
- Java doc
- Comparing interfaces and inheritances
- Converting between class and interface types
- Invoking methods on interfaces variables
- Casting from interfaces to classes
- Interfaces Comparable and Comparator
Chapter 14 Sorting and Searching
- Selection sort
- Insertion sort
Review the lecture notes and lab assignments 1 to 4.