Fall 2022: Advanced Programming in Java (PSCS)
Contents
Logistics
- Class Timings: Fridays 1:00 pm - 3:00 pm (5th and 6th slot)
- Classroom: R33
- Lab Timings: Thursdays 8:45 pm - 1:00 pm (1st - 4thslot)
- Labs: CS Lab 3, 4, and 5
Course Overview
- As per the Delhi University Course Guidelines
Lectures
Lecture | Topic | Lecture Slides | Readings |
---|---|---|---|
Unit 1: (Part-1) (22/07/22, 04/08/22, 05/08/22, 18/08/22 ) | UNIT 1: Review of Object Oriented Programming and Java Fundamentals (1) Introduction: History of Java, Java Features, First Sample Program, Java Virtual Machine(JVM) Architecture. (2) OOPs Principles: Object, Class, Encapsulation, Abstraction, Inheritance, Polymorphism. |
1.pdf, 2.pdf, 3.pdf, 4.pdf, 5.pdf | Chapter 1-7 (R1) |
Unit 1: (Part-2) (26/08/22, 01/09/22) | Inheritance: Inheritance Basics. Types of Inheritance in Java. A simple example of Inheritance(Single Inheritance). Member access and Inheritance, A more practical example. A Superclass Variable Can Reference a Subclass Object. Using super. Using Super to Call Superclass Constructors. Creating a Multilevel Hierarchy. When Constructors are Executed? Method Overriding. Method Overriding vs Overloading. Dynamic Method Dispatch. Why Overridden Methods? Applying Method Overriding. Using Abstract Classess. Using final with Inheritance. Using final to Prevent Overridding. The Object Class.
|
6.pdf | Chapter 8 (R1) |
Unit 2-3 (09/09/22, 16/09/22, 23/09/22) | Packages and Interfaces: Introduction to Packages. Defining a Package. Package Example. Finding Packages and CLASSPATH. Access Protection. An Access Example. Importing Packages. Introduction to Interfaces. Defining an Interface. Implementing Interfaces. Accessing Implementations Through Interface References. Partial Implementations. Nested Interfaces. Applying Interfaces. Variables in Interfaces. Extending Interfaces. Default Interface Methods. Multiple Inheritance Issues. static Methods in an Interface.
|
7.pdf | Chapter 9 (R1) |
Unit 4 (29/09/22, 14/10/22) | Exception Handling: Exception Handling Fundamentals(five keywords:try, catch, throw, throws, finally). Exception Types. Uncaught Exception.Using try and catch. Displaying a Description of an Exception. Multiple catch Clauses. Nested try Statements. throw. throws. throw vs. throws. finally. final vs. finally vs. finalize. Java’s Built-in Exceptions. Hierarchy of Java Exception Classes. Creating your own Exception Subclass
|
8.pdf | Chapter 10 (R1) |
Unit 5 | Java I/O and File Handling: I/O Stream Basics, Byte Stream and Character Stream, The Predefined Stream, Reading Console Input, Writing Console Output, Reading and Writing Files, Try-with Resources [ Self Study ]
|
9.pdf | Chapter 13 (R1) |
Unit 6 | GUI Programming - Event Handling, Introducing the AWT: Working with Windows, Graphics and Text, Using AWT Controls, Layout Managers, and Menus: The AWT class hierarchy. The Delegation Event Model. Events, Event sources, Event classes, Event Listeners, Relationship between Event sources and Listeners. Creating GUI applications using AWT.
|
10.pdf + Book Reading + Online Tutorials. | Chapter 24,25,26 (R1) |
Assignments and Tests
Class Assignments
- Assignment No. 1, Individual Assignment, Posted on Google Classroom, Submission Deadline: 30/05/2022
- Assignment No. 2, Group Assignment, Discussed in the class, Submission Deadline: 07/05/2022
Tests and Quizzes
- Test 1 : 21/06/2022, Test1.pdf, Solution.pdf
- Quiz 1: 01/06/22
- Test 2: 12/07/2022, Test2.pdf,
Resources
- R1: Schildt, H. (2018). Java: The Complete Reference. 10th edition. McGraw-Hill Education.
- Additional R1: Balaguruswamy, E. (2014). Programming with JAVA: A Primer. 5th edition. India: McGraw Hill Education.
- Additional R2: Horstmann, C. S. (2017). Core Java - Vol. I – Fundamentals (Vol. 10). Pearson Education.
- Additional R3: Schildt, H., & Skrien, D. (2012). Java Fundamentals - A Comprehensive Introduction. India: McGraw Hill Education.
- Web 1: The Java™ Tutorials [1]
- Web 2: Java T Point Tutorial [2]
- Web 3: NTU notes on Java [3]
Scribe (Lecture summaries by students)
Unit/Chapter | Topic | Name of Students | PPT/PDF/Video |
---|---|---|---|
1 | The History and Evolution of Java |
|
Scribe1.pdf |
2 | An Overview of Java |
|
Scribe2.pdf |
3, 4, 5 | Data Types, Variables and Arrays, Operators, Control Statements |
|
Scribe3.pdf |
6 | Introducing Classes |
|
Scribe4.pdf |
7 | A Closer Look at Methods and Classes |
|
Scribe5.pdf |
8 | Inheritance |
|
Scribe6.pdf |
9 | Packages and Interfaces | ||
10 | Exception Handling |
|
Scribe8.pdf |
11 | IO and File Handling |
|
Scribe9.pdf |
12 | Event Handling and AWT | ||
13 | Introducing Swing, Exploring Swing |
Course Running Status (Running/Completed)
Unit/Chapter | Topic | Status | Remarks |
---|---|---|---|
1 | The History and Evolution of Java | Completed | 27/04/2022 |
2 | An Overview of Java | Completed | 05/05/2022 |
3, 4, 5 | Data Types, Variables and Arrays, Operators, Control Statements | Completed | 11/05/2022 |
6 | Introducing Classes | Completed | 18/05/2022 |
7 | A Closer Look at Methods and Classes | Completed | 25/05/2022 |
8 | Inheritance | Completed | 14/06/2022 |
9 | Packages and Interfaces | Completed | 21/06/2022 |
10 | Exception Handling | Completed | 28/06/2022 |
11 | IO and File Handling | Completed | 05/07/2022 |
12 | Event Handling and AWT | Completed | 12/07/2022 |
13 | Introducing Swing, Exploring Swing |