COURSE
JAVA PROGRAMMING CREDITS 3
TITLE
COURSE COURSE
ECS51014 PC L-T-P-S 2-0-2-2
CODE CATEGORY
APPROVAL LEARNIN
VERSION 1.0 36th ACM BTL-3
DETAILS G LEVEL
ASSESSMENT SCHEME
Observation / End Semester
lab records as Examination
First Second Practical approved by
Attendan
Periodical Periodical Assessmen the Department
ce
Assessment Assessment ts Examination
Committee PRACTICA
THEORY
“DEC” L
15% 15% 10% 5% 5% 25% 25%
This course introduces computer programming using the JAVA programming language with
Course object-oriented programming principles. Emphasis is placed on event-
Description driven programming methods, including creating and manipulating objects, classes, and
using object-oriented tools such as the class debugger.
1. To solve low complexity problems using Java code.
2. To solve medium complexity problems using OO Features in Java.
Course 3. Awareness about Exception Handling in Java.
Objectives 4. To develop Multi-Threaded Java Applications.
5. To solve IO Related Problems using Java Stream Classes.
6. To learn about GUI based applications using Applets and AWT.
Upon completion of this course, the students will be able to
1. Apply Java based code for solving low complexity problems
Course 2. Utilize Object Oriented Features in Java for solving medium complexity problems.
Outcome 3. Exploit Exception Handling Feature in Java.
4. Develop Multi-Threaded Java Applications.
5. Develop GUI based applications using Applet and AWT
Prerequisites: C and C++ Programming Language
CO, PO AND PSO MAPPING
PO PO PO PO PO PO PO PO PO PO PO PO PS PS
Cos PSO1
1 2 3 4 5 6 7 8 9 10 11 12 O2 O3
CO-1 3 3 2 2 2 2 - 2 2 2 2 2 2 3 3
CO-2 3 3 2 2 2 2 - 2 2 2 2 3 2 3 3
CO-3 3 3 2 2 2 2 - 2 2 2 2 3 2 3 3
CO-4 3 3 2 2 2 2 - 2 2 2 2 3 3 3 3
CO-5 3 3 2 2 2 2 - 2 2 2 2 3 3 3 3
1 – WeaklyCorrelated, 2 - Moderately Correlated and 3 - Strongly Correlated
MODULE 1: INTRODUCTION TO JAVA and OOP (6L+3P)
Object-Oriented Languages: Introduction to Java - Importance of Java for the Internet
- Byte-code and its Features, Object-Oriented Programming in Java, Java Program
Structure and Java Class Library - Data Types - Variables and Operators - Operator
Precedence - Selection Statements - Iterative Statement, Defining Classes & Methods
– Constructors - Creating Objects of a Class - Assigning object Reference Variables -
‘this’ Keyword - Automatic Garbage Collection. Arrays: Declaration and usage of
CO-1
Arrays - Arrays of Characters, String: String as a class - String Handling Using String
Class - Operations on String. BTL-3
Software: Java
Practical Component:
1. Write a program to read N numbers and find the largest and smallest numbers.
2. Write a program to read an email as input and verify whether the email is in
the correct format (***@***.**) using String functions
3. Write a program to display total marks of 5 students using student class. Given
the following attributes: Regno(int), Name(string), Marks in subjects(Integer
Array), Total (int).
MODULE 2: INHERITANCE, PACKAGES AND INTERFACE(3L+3P)
Inheritance - Inheriting Classes- Type of Inheritance, Polymorphism - Overloading –
Over riding, Abstract Classes - Access Modifier: Final.
Package - Understanding Packages - Defining a package - Packaging up multiple
classes - Importing and Using Packages - Understanding CLASSPATH - Standard
Packages - Access Protection in Packages, Scope of Variable - Access specifiers - Using
Inbuilt packages.
Interfaces - Declaring Interfaces - Implementing Interfaces - Using inbuilt interfaces. CO-2
BTL-3
Software: Java
Practical Component:
1. Write a program to create a player class. Inherit the classes Cricket_player,
Football_player and Hockey_player form player class.
2. Write a program to show how a class implements two interfaces.
3. Write a program to create a package for Book details giving Book Name, Author
Name, Price, year of publishing
MODULE 3: EXCEPTION HANDLING AND MULTITHREADING (6L+3P)
Exception Handling - The concept of Exceptions in Java - Types of Exceptions -
Exception Objects - Try - Catch and Finally blocks - Multiple Catch blocks
- Understanding ‘Throws’ and ‘Throw‘ - Defining Your Own Exceptions.
Multithreading Programming - The Java Thread Model, Understanding Threads - The
Main Thread - Creating a Thread - Creating Multiple Threads - Thread Priorities –
Synchronization - Inter thread communication - Deadlocks.
CO-3
Software: Java BTL-3
Practical Component:
1. Write a Java program to catch more than one exception.
2. Write a Java program for generating two threads, one for printing even umbers
and other for printing odd numbers.
3. Write a Java program for producer and consumer problem using Thread.
MODULE 4: INPUT/OUTPUT STREAMS (6L+3P=6)
Input/Output in Java - I/O Basic - Byte Streams - Character Streams- Stream Chaining –
Reading and writing to Console - Reading and Writing on Files - Special Streams –
Input Stream Reader and Output Stream Writer – Pushback Input Streams.
Software: Java
CO-4
Practical Component: BTL-3
1. Write a java program to copy the contents of one file to another file.
2. Write a Java program to read input from the standard input and write to a byte
array
MODULE 5: WORKING WITH AWT CLASSES SWING, APPLET AND
GRAPHICS (6L+3P)
AWT Classes- AWT Controls - Applet Basics - Applet Architecture - Applet Life Cycle -
Paint and Repaint methods - Swing – Swing Components, Working with Graphics and
Texts - Working with Colours and Font – Event Handling – Adapter Classes.
Software: Java
Practical Component:
1. Create an Applet to read the RGB components as input and create an appropriate
colour using the RGB values. Fill a rectangle using the obtained colour. CO-5
BTL-3
2. Create an applet for simple calculator to perform Addition, Subtraction,
Multiplication and Division using Button, label and Text field classes
TEXT BOOKS
th
1. Herbert Schildt, “JAVA The Complete Reference”, 10 Edition, McGraw Hill Education, 2017.
Cay S. Horstman and Gary Cornell,“Core Java Volume I—Fundamentals”, 11th Edition, Prentice Hall,
2 2018.
REFERENCE BOOKS
th
1. Cay Horstman, “Big Java: Early Objects”, 6 Edition, Wiley Publications, 2016
Ken Arnold, James Gosling, and David Holmes, “The Java Programming Language”, 4th edition,
2 Addison-Wesley, 2005.
E- BOOKS
[Link]
1
[Link]
MOOC
1 [Link]
.
2 [Link]