Java Programming
(Common to CSE, IT, AIML & CSE (DS))
L T P C
Course Code: 241IT006
2 0 2 4
Course Outcomes:
At the end of the course, student will be able to:
CO1 Apply Java features for problem solving.
CO2 Build applications using principles of OOPs, interfaces and Packages.
CO3 Develop programs using Exception Handling to handle run-time errors.
CO4 Develop applications using multithreading for inter thread communication.
CO5 Build JDBC applications for performing CRUD operations using MySQL.
Mapping of Course Outcomes with Program Outcomes:
CO/PO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11
CO1 2 1 1 1 DRAFT COPY
1 2 1
CO2 2 1 3 1 1 2 1
CO3 2 3 2 1 1 2 1
CO4 2 2 2 1 1 2 1
CO5 2 2 3 1 1 2 1
Mapping of Course Outcomes with Program Specific Outcomes:
CO/PSO PSO1 PSO2
CO1 1
CO2 1
CO3 1
CO4 2
CO5 3
UNIT – I
Introduction to Java: History of Java, Features of Java Language, JVM Architecture, Java
source file structure. Building Blocks of Java, Control Statements, Operators, Type
Conversion, Command Line Arguments, Arrays.
Practice:
1. Control Statements
a. Select all the prime numbers within the range of 1 to 100.
b. Find the sum of all even terms in the Fibonacci sequence up to the given range N.
[Link] (CSE) Curriculum-2024 Page 80 of 799
`
c. Check whether a given number is Armstrong or not.
2. Arrays
a. Sort an array of integers in ascending order.
b. Find the maximum and minimum element in an array.
c. Remove duplicate elements from an array.
UNIT – II
Concepts of Class: Class, Object, Method, Constructor, Overloading- Method and
Constructor Keywords: this, static and final, String Class and its Methods,
StringTokenizer, StringBuffer and StringBuilder.
Practice:
1. Class Mechanism
a. Display the details of a person. Personal details should be given in one method and
the qualification details in another method.
b. Implement constructor and constructor overloading.
c. Implement method overloading.
[Link]
a. Check if a given string is a pangram (contains every letter of the alphabet at least
once).
b. Find the most frequently occurring character in a string.
c. Find all permutations of a given string.
d. Check if a given string is a anagram (Ex: CAT and ACT).
DRAFT COPY
UNIT – III
Inheritance: Inheritance, Types of Inheritance, super and super( ), Method Overriding,
Using final with inheritance, abstract with Class and Method, Dynamic Method Dispatch.
Interfaces: Introduction to interface, Multiple inheritance.
Practice:
1. Inheritance & interface
a. Implement multi level Inheritance.
b. Implement multiple Inheritance.
c. Find the areas of different shapes using abstract classes.
UNIT – IV
Packages: Introduction, Importing Packages and Classes, path and classpath, Access
Specifiers, [Link]: Collection Framework (related interfaces and classes), [Link]:
FileReader, FileWriter, FileInputStream, FileOutputStream, BufferReader and
BufferWriter, Wrapper Classes.
Practice:
1. Packages & [Link]
a. Import and use user defined package.
b. Illustrate the use of protected members in a package.
c. Copy Even numbers into [Link] file and Odd Numbers into [Link] file.
[Link] (CSE) Curriculum-2024 Page 81 of 799
`
2. Collection Framework
a. ArrayList and LinkedList
b. Iterator and Iterable
c. Comparator and Comparable
d. HashMap and TreeMap
e. HashSet and TreeSet
f. HashTable
UNIT – V
Exception Handling: Introduction, Keywords: try, catch, throw, throws and finally,
Multiple Catch Clauses, Checked and Unchecked Exceptions, User Defined Exceptions.
Multithreading: Introduction, Thread Life Cycle, Creation, Priorities, Synchronization,
ITC.
Java Database Connectivity: Introduction, JDBC Architecture, Types of Drivers, JDBC
Environment Setup, JDBC Steps, CRUD Operations.
Practice:
1. Exception Handling
a. Illustrate exception handling mechanism using multiple catch clauses.
b. Make use of Built-in and user-defined Exceptions in handling a run time exception.
2. Multithreading
a. Creates threads by extending Thread class. First thread display “Good Morning
DRAFT COPY
“every 1 sec, the second thread displays “Hello “every 2 seconds and the third
display “Welcome” every 3 seconds, (Repeat the same by implementing Runnable).
b. Solve Producer-Consumer problem using synchronization.
3. JDBC
a. CRUD operations.
Additional Practice:
1. Student Management
2. Inventory Management
3. Phone book Management
* Note: The student must Complete & Submit a Java Programming Certificate
Course offered by Oracle Academy at the end of the Practice Session.
Text Books:
The Complete Reference Java, Herbert Schildt, TMH ,8th Edition,ISBN 978-
1
1260440232.
Java one step ahead, Anita seth, [Link], Oxford, First
2
[Link]: 9780199459643.
[Link] (CSE) Curriculum-2024 Page 82 of 799
`
Reference Books:
Introduction to java programming, by Y Daniel Liang, Seventh Edition, Pearson,
1
ISBN: 978-8131729588
Core Java: An Integrated Approach, [Link] Rao, Dream tech press, ISBN:
2
978-9351199250
Web Links:
1 [Link]
2 [Link]
DRAFT COPY
[Link] (CSE) Curriculum-2024 Page 83 of 799