SASTRA B. Tech.
in Computer Science and Engineering
L T P C
3 0 2 4
Course Code: CSE208
Semester: III
JAVA PROGRAMMING
Course Objectives
This course will help the learner to develop Java console applications using packages,
interfaces, classes, exception handling mechanism, and Collections framework. The learner
can also develop multi-threaded applications using Java thread model. The learner will also be
able to design GUI using Swing controls and event handling mechanism.
UNIT - I 12 Periods
Introduction: History and Evolution of Java - Overview of Java - Data types, Variables and
Arrays - Operators - Control Statements - Introducing Classes - A closer look at Methods and
Classes - Inheritance. Packages and Interfaces - Exception Handling
UNIT - II 11 Periods
Multithreaded Programming: Java Thread Model - The Main Thread - Creating a Thread -
Creating Multiple Threads - Thread Priorities - Synchronization. I/O: I/O Basics - Reading
Console Input - Writing Console Output. String Handling: String - String Buffer - String Builder
UNIT - III 11 Periods
Collections Framework: Collection Interfaces - Collection, List, Set, Sorted Set - Collection
Classes - Array List, Hash Set, Tree Set - Accessing a collection via an Iterator - Working with
Maps - Comparators. Event Handling: Introduction - Event Delegation - Model - Event classes
- Sources of Events - Event Listener - Adapter Classes - Inner Classes in Event Handling
UNIT - IV 11 Periods
Introducing GUI Programming with Swing: Introducing Swing - Exploring Swing - Introducing
Swing Menus
TEXTBOOK
1. Herbert Schildt, The Complete Reference JAVA, Tata McGraw Hill, Eleventh Edition,
2019.
REFERENCES
1. Harvey M. Deitel and Paul J. Deitel. JAVA: How to Program, Prentice Hall, Ninth Edition,
2012.
2. Kathy Sierra and Bert Bates. Head First Java, OReilly, Second Edition, 2009.
ONLINE MATERIAL
1. http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-092-
introduction-to-programming-in-java-january-iap-2010/lecture-notes/
UNITWISE LEARNING OUTCOMES
Upon successful completion of each unit, the learner will be able to
Unit I Recall the basic syntax and structure of the Java program
SASTRA B. Tech. in Computer Science and Engineering
Create programs for the given problem using classes
Design programs using Packages and Interfaces
Unit II Develop applications using multiple threads
Create program to solve problems using Strings and Files
Unit III Develop programs for event handling
Develop applications using collection interfaces
Design applications employing collection classes
Unit IV Design GUI using Swings
COURSE LEARNING OUTCOMES
Upon successful completion of this course, the learner will be able to
Design Classes to model real world objects using inheritance
Create Classes using Packages, Interfaces and Exception Handling
Develop applications using Threads and Files
Create programs for event handling
Design applications using collection framework
Create applications Using Swing
LIST OF LABORATORY EXERCISES
1. Program to demonstrate Polymorphism.
2. Program to demonstrate Inheritance.
3. Program to demonstrate Interfaces and Packages.
4. Program to demonstrate Exception handling.
5. Program to demonstrate Multithreading.
6. Program using I/O classes.
7. Program to demonstrate String Handling
8. Program using Set and Comparable interface
9. Program to Handle Mouse Event and Key Event.
10. Program using swing.