0% found this document useful (0 votes)
8 views

22CA026_Advance Java Programming_BCA6

The document outlines the course plan for Advance Java Programming at Chitkara University for the BCA program. It includes course objectives, learning outcomes, CLO-PO mapping, recommended books, tools, and a detailed theory and lab plan. The course aims to teach students various Java concepts, including OOPs, data structures, UI components, and database connectivity.

Uploaded by

Tanya Verma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

22CA026_Advance Java Programming_BCA6

The document outlines the course plan for Advance Java Programming at Chitkara University for the BCA program. It includes course objectives, learning outcomes, CLO-PO mapping, recommended books, tools, and a detailed theory and lab plan. The course aims to teach students various Java concepts, including OOPs, data structures, UI components, and database connectivity.

Uploaded by

Tanya Verma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Course Plan

Course Handout

Institute/School Name Chitkara University Institute of Engineering & Technology

Department Name Department of Computer Applications


Programme Name BCA
Advance Java Programming Session Jan-Jun 2025
Course Name

Course Code 22CA026 Semester/Batch 6th/2022


L-T-P(Per Week) 4-0-4 Course Credits 6
Pre-requisite Understanding of the OOPs Concepts, NHEQF Level1 5.5
Knowledge of core Java, Basic logic
building and programming skills

Course Coordinator Dr. Nishu Bali SDG Number4 4,9

1. Objectives of the Course

• Interpret various object-oriented features.


• Explain different types of data structure using collection framework.
• Describe various AWT components to create UI.
• Describe various Swing components to create UI.
• Implement various event classes to handle various types of events.
• Recognize the concept of Java and MySQL connectivity.
• Implement small application that interacts with database.

2. Course Learning Outcomes (CLOs)

Student should be able to:

CLOs Program Outcomes (PO) NHEQF Level No. of


Descriptor2 Lectures
CLO01 Demonstrate basic concepts of OOPs PO1, PO4, PO5, PO9 Q2 14
using JAVA programming language
CLO02 Explain collection framework and easy PO1, PO3, PO5, PO7 Q3 7
way to use data structure in java.
CLO03 Define AWT package and swings to PO2, PO4, PO6, PO9 Q4 12
create various components of web page.
CLO04 Understand basic steps to perform PO1, PO3, PO5, PO6, PO7, PO9 Q1 5
connectivity of MySQL and Java
technology.
CLO05 Create small applications that interact with PO2, PO3, PO6, PO7, PO9 Q3 2
database and web.
Total Contact Hours:42

1
National Higher Education Qualification Framework Level, Refer to annexure
2
NHEQF Level Descriptor, Refer to Annexure & Learning outcomes descriptors for qualification for all levels on the NHEQF
3
Types of Assessments can be referred from Type of Assessments. Refer to Annexure.
4
For SDG Mapping with Courses, Pl refer SDG Mapping policy for Courses
Page 1 of 23
22CA026 / Advance Java Programming
Course Plan

CLO-PO Mapping
CLO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 Type of
Assessment’s3
CLO01 M M M M Formative
assessments
CLO02 H M M M M Summative
assessments
CLO03 H M M L Formative
assessments
CLO04 M M H H M M Formative
assessments
CLO05 M H H L M M Summative
assessments
H=High, M=Medium, L=Low
3. Recommended Books:
B01: The Java: Complete Reference, Patrick Naughton, Herbert Schildt, 9th edition, McGraw-Hill
B02: Core Java an Integrated Approach, Dr. R. Nageswara Rao, edition, 1st edition, Dreamtech Press
B03: Core Java an Integrated Approach, Dr. R. Nageswara Rao, edition, 1st edition, Dreamtech Press
B04: Java in a Nutshell, David Flanagan, 4th edition, O'Reilly Media Publication
4. Other readings and relevant websites:

Serial No Link of Journals, Magazines, websites and Research Papers


1. [W1] http://www.javatpoint.com/java-tutorial
2. [W2] https://www.tutorialspoint.com/java/
3. [W3] https://www.udemy.com/java-tutorial/
4. [W4] https://docs.oracle.com/javase/tutorial/
5. W5] http://www.studytonight.com/java
5. Recommended Tools and Platforms

Eclipse

6. Course Plan: Theory+ Lab Plan


Theory Plan

Lect. No. Topic(s)


1-2 Java Basics:
Introduction to basic concepts of java.
3-5 Constructor and class concept:
Introduction to constructor, object and class concept in context of java
language.
6-8 Arrays:
Introduction to concept of array of primitives and objects (one and two
dimensional).
9-11 Inheritance:
Meaning of inheritance in java and types of inheritances supported in
Java language.
12-14 Exception Handling:

Page 2 of 23
22CA026 / Advance Java Programming
Course Plan

Introduction to concept of exception handling in java, Types of


exceptions (checked /unchecked). Ways of handling exceptions.
ST1
15-16 Collection framework:
Meaning of Collection Framework, Hierarchy of Collection Framework,
List Collection (Array List, Linked List & Vector).
17-19 Collection Classes:
Iterable& Collection Interface, Collection Interface Methods, Properties of List Collection, Array List
v/s linked list, Array List to Vector and Vector to Linked List, Array List Traversal, Linked List ,
Stack, Specific Methods.
20-22 Collection Classes:
Deque Interface Supporting LIFO and FIFO, Set Usages (HashSet and TreeSet), Usage of List Iterator
23-25 AWT Components:
Layout Manager:
AWT basics, AWT hierarchy introduction, AWT component class.
border layout, grid layout, flow layout, Box layout.
26-28 Swing:
Introduction, hierarchy of java swing classes, JComponent class methods,
creating frame in swing.
29-31 JComponent:
JButton, Jlabel, JTextField, JCheckBox ,JRadioButton, JComboBox, JList. AWT
and swing difference.
ST2
32-35 Event handling:
Event Delegation Model, Event Classes, Source of Event and Event Listener
Interfaces, Adapter classes.
36-39 JDBC Connectivity intro
Introduction, working with MySQL database, registering the drivers,
connecting to database.
40-42 JDBC Connectivity: Application
Preparing SQL statement. Retrieving data from MySQL database.
End Term Exam

Lab Plan

Lab No. Topic(s)


1 Ram is working as a data entry operator. He is adding records of employees which consist of name of
employee, designation of employee, city , phone number and salary through command line. He is
adding the details of each employee in this very order. Now, he needs to display the details separating
each employee as a separate record . Also, he has to find the employee with largest salary and smallest
salary and display their details.

Page 3 of 23
22CA026 / Advance Java Programming
Course Plan

Implement the scenario by taking input only through command line arguments
2 Perform following operations on number entered by user.
a) Check whether the number is a strong number or not. [Strong number is a number whose sum of
factorials of each digit is equal to the original number. Example 145]
b) Display prime numbers within a range starting from 1 till the number entered by user
c) Create a multiplication table for the entered number till 100
d) Check whether the number is an Armstrong number or not
e) Generate the reverse of the entered number
Create separate functions for each of these tasks.
3. Perform the following on strings entered by user:
a) Count Vowels, consonants, capital Letters, small letters, numbers and spaces in the string
b) Enter the reversed string in a character array
c) Convert the given string into uppercase
d) Check whether the entered string is a palindrome or not
Create separate functions for each of these tasks
4-5 Consider three String class objects. Split the strings in to three parts FIRST, MIDDLE AND LAST.
a) Check the length of each string. If the length is a multiple of 3, split the string in three equal parts
b) If length is not a multiple of 3 and remainder is one, split the string such that first and last portions
are same length whereas the middle portion length is one less than the two other portions
c) If length is not a multiple of 3 and remainder is two, split the string such that first and last portions
are same length whereas the middle portion length is one less than the two other portions
Combine the strings in the order given below to generate the final string
Final string1=[FIRST of first string][MIDDLE of third string][LAST of second string]
Final string 2=[FIRST of second string][MIDDLE of first string][LAST of third string]
Final string 3=[FIRST of third string][MIDDLE of second string][LAST of third string]
Display all three final strings
6 A hotel has different rooms. The types of room are:

Type of room Price Mess Charges


Penta 4000/day Rs 1000/day
superior 2000/day Rs 1000/day
deluxe 1500/day Rs 500/day
semidelux 1000/day Rs 300/day

Implement the scenario by creating a class Hotel with data members: customer_name, name_of_hotel,
customer_phone, customer_city, customer_room_type, no_of_days. Create an array of Hotel class
objects representing various customers and solve the following queries:
a) Display the details of Customer whose bill is more than 10000
b) Count number of customers opting for all types of rooms
c) Count number of customers who belong to same city.

Page 4 of 23
22CA026 / Advance Java Programming
Course Plan

7-8 Create a number guessing game. Ask the user to guess the number.
a) If the number entered by the user is more than the guessed number and the difference is more than
5, throw an exception of yours and give message “You have gone too far”
b) If the number entered by the user is more than the guessed number and the difference is more than
2, throw an exception of yours and give message “You have gone a bit ahead”
c) If the number entered by the user is less than the guessed number and the difference is more than -5,
throw an exception of yours and give message “You have stopped too early”
d) If the number entered by the user is less than the guessed number and the difference is more than -2,
throw an exception of yours and give message “You have stopped a bit early”
e) If the number entered by the user is equal to the guessed number, give him a message “you got it!!.
Congrats”.

The number of turns given to a player should not be more than 5 and if he crosses the turns, throw an
exception and give message “Your attempts are over!!. Better Luck next time”.
9-10

Ramesh is an employee of a Bank whose hierarchy is as shown in the figure. He has to maintain the
transactions of bank in various branches. Implement the scenario by creating an array of Bank class
objects. Fill the array with objects of subclasses as per the request customer of specific branch. Each
customer should have a unique ID. Store the details of customers till the user prompts for no further
entries.
Each customer should be provided options for:
a) displaying his complete details
b) Credit/debit his account
Each account should have interest added to it after every credit.

Page 5 of 23
22CA026 / Advance Java Programming
Course Plan

After complete data entry, solve the following queries:


a) Count number of customers whose account balance is more than 80000
b) Display details of all customers belonging to Chandigarh and Kolkata branch
c) Count number of customers in Delhi branch whose account type is savings and whose balance in
more than balance of both Kolkata and Chandigarh branch
d) Display the total balance of all the branches at the end of day
Continuous Evaluation1 (15marks)
11-12 Create an ArrayList of Strings that enters the names of employees in an organization. The names
should be input until the user enters the word “quit” . Perform the following operations on these
names:
a)Write a method “switchpairs” that switches the pairs of names entered by the user. If the number of
names entered is an odd number, the last name in the list should remain at its position.
b) Write a method “marklength4” that the marks the names with length 4 by asterisk. For example if
the list is { seema, sonu, amit}, then list should be changed to { seema, “****”,sonu,”****”,
“****”,amit, “****”}
c) Write a method “remove_dupicate” that removes any duplicate names from the list.
13-14 Create an ArrayList of numbers. Write a method removeBadPairs that accepts an ArrayList of integers and
removes any adjacent pair of integers in the list if the left element of the pair is larger than the right element
of the pair. Every pair's left element is an even-numbered index in the list, and every pair's right element is
an odd index in the list. For example, suppose a variable called list stores the following element values: [3,
7, 9, 2, 5, 5, 8, 5, 6, 3, 4, 7, 3, 1]
We can think of this list as a sequence of pairs: (3, 7), (9, 2), (5, 5), (8, 5), (6, 3), (4, 7), (3, 1). The pairs (9,
2), (8, 5), (6, 3), and (3, 1) are "bad" because the left element is larger than the right one, so these pairs
should be removed. So the call of removeBadPairs(list); would change the list to store the following
element values: [3, 7, 5, 5, 4, 7]

If the list has an odd length, the last element is not part of a pair and is also considered "bad;" it should
therefore be removed by your method. If an empty list is passed in, the list should still be empty at the
end of the call. You may assume that the list passed is not null. You may not use any other arrays,
lists, or other data structures to help you solve this problem, though you can create as many simple
variables as you like.
15-16 Ramesh is a mathematics teacher. He is currently teaching students how to perform various mathematical
operations on polynomials. Being fond of programming, he wants to generate a program in java that can
do the tasks for him. Use the LinkedList collection defined in Java to perform the following operations on
polynomials.
a) Entering a polynomial of any degree
b) Add/ Subtract two polynomials and display result
c) Multiply two polynomials and display the result
d) Print the coefficient of polynomial term with largest exponent from three polynomials
e) Copy the contents of one polynomial to another

Page 6 of 23
22CA026 / Advance Java Programming
Course Plan

f) Concatenate two polynomials.


17-18 Write a class “StackExample” that has the method “getEvenNumbers” below.

public static Stack getEvenNumbers(Stack stack)

The method receives a stack of integers (implemented in the provided Stack class) and returns a new stack
with all even numbers from the initial stack (preserving their original order). For example, given the stack
{ 4, 5, 3, 2, 6, 9, 2 } (where 4 is at the top of the stack), the method returns { 4, 2, 6, 2 }. The initial stack
should retain its original values when the method ends. The class Stack has methods: push (to add an
integer to the stack), pop (to remove an integer from the stack) and isEmpty (to know whether the stack is
empty or not).
19-20 Write a java program to perform following using queue:
a) Reverse the queue using stack
b) Reverse the first half of the elements and leave the second half unchanged.
c) Move all even elements to the front of the queue while maintaining the relative order of other
elements.
21

1.Use swings to create a counter that increments the counter on every click of the button count.
2.using swings, create another GUI in which a number is entered by the user and its factorial is
displayed in the text field. On click of next button, next number is taken and its factorial is displayed
in the text field.
22-24

Use swings/awt to create the calculatordisplayed in the above figure


Continuous Evaluation2 (15Marks)

Page 7 of 23
22CA026 / Advance Java Programming
Course Plan

25-27 Ramesh is a data entry operator in an organisation. he has to maintain the details of employees which he
regularly needs to fetch and update as per the requirement. Design an Graphical interface for him to get
the details of employees: the requirements of GUI are:
a) A login page where existing user can enter username and password
b) A signup for new employees in which details of employees are to be entered.

The details of employees required to be maintained are:


a) Name
b) Designation
c) Phone
d) Salary
e) Department Name
f) Joining date
g) password
These details should be entered only for the employees who are new to the organisation as they need to be
registered. All details entered by the user should be entered in the data base so that they can be fetched as
per the requirement.
Once the record has been entered for any employee, he should be given a login name and password which
he or she can use for seeing his details.
The login and password of admin would be unique and he should be given a window in which he can
perform the following:
a) insert a record
b) delete a record
c) update a record
d) alter the field of the database
e)Fetch a record as per the requirements. Fetching of records can be on any field except joining date,
password and phone.

7. Delivery/Instructional Resources
Theory Plan:
Lec Topics CLO Book No, TLM3 ALM4 Web References Audio-Video
t. CH No,
No. Page No
1-2 Java Basics: CLO01 B01 Lecture http://www.javatpoint.c https://www.youtube.co
Quiz/T m/watch?v=8px36FWLd
Introduction to om/java-tutorial
est Ds
basic concepts of Questio
ns
java.
3-5 Constructor and CLO01 Questio Quiz/T https://www.tutorialspo https://www.youtube.co
B01
ning est m/watch?v=8px36FWLd
class concept: int.com/java/
Questio Ds

3 Teaching Learning Methods, Refer to Annexure


4 Active Learning Methods
Page 8 of 23
22CA026 / Advance Java Programming
Course Plan

Introduction to ns
constructor, object
and class concept
in context of java
language.
6-8 Arrays: CLO01 Lecture Quiz/T https://www.udemy.co https://www.youtube.co
B03
est m/watch?v=8px36FWLd
Introduction to m/java-tutorial/
Questio Ds
concept of array of ns
primitives and
objects (one and
two dimensional).
9-11 Inheritance: CLO01 B04 Questio https://docs.oracle.com/ https://www.youtube.co
ning Group m/watch?v=8px36FWLd
Meaning of javase/tutorial/
Discuss Ds
inheritance in java ion
and types of
inheritances
supported in
Java language.
12-14 Exception CLO01 R01 Lecture http://www.studytonigh https://www.youtube.co
Quiz/Test m/watch?v=8px36FWLd
Handling: t.com/java
Questions Ds
Introduction to
concept of
exception
handling in java,
Types of
exceptions
(checked
/unchecked).
Ways of handling
exceptions.
15-16 Collection CLO02 R01 Questio http://www.javatpoint.c https://www.youtube.co
ning Group m/watch?v=8px36FWLd
Classes: om/java-tutorial
Discuss Ds
Iterable & ion
Collection
Interface,
Collection
Interface Methods,
Properties of List
Collection, Array
List v/s linked list,

Page 9 of 23
22CA026 / Advance Java Programming
Course Plan

Array List to
Vector and Vector
to Linked List,
Array List
Traversal, Linked
List Specific
Methods.
17-19 Collection CLO02 Lecture https://www.tutorialspo https://www.youtube.com/watch?v=rz
R01
Group A7UJ-hQn4
Classes: int.com/java/
Discuss
Deque Interface ion
Supporting LIFO
and FIFO, Set
Usages (HashSet
and TreeSet),
Usage of List
Iterator
20-22 AWT CLO03 Questio Quiz/T https://www.udemy.co https://www.youtube.com/watch?v=rz
B01 ning est A7UJ-hQn4
Components: m/java-tutorial/
Questio
Layout ns
Manager:
AWT basics,
AWT hierarchy
introduction,
AWT component
class.
border layout, grid
layout, flow
layout, Box
layout.
23-25 Swing: CLO03 B01 Lecture Quiz/T https://docs.oracle.com/ https://www.youtube.com/watch?v=rz
est A7UJ-hQn4
Introduction, javase/tutorial/
Questio
hierarchy of java ns
swing classes,
JComponent class
methods,
creating frame in
swing.
26-28 JComponent: CLO03 Discuss Quiz/T http://www.studytonigh https://www.youtube.co
B01
ion, est m/watch?v=7v2OnUti2e
JButton, Jlabel, t.com/java
Questio Questio M&pp=ygUMI2phdmFj
JTextField, ning ns b25uZWN0,
https://www.youtube.co
Page 10 of 23
22CA026 / Advance Java Programming
Course Plan

JCheckBox m/watch?v=1vVJPzVza
K8
,JRadioButton,
JComboBox,
JList. AWT
and swing
difference.
29-32 Event handling: CLO03 Lecture Quiz/T http://www.javatpoint.c https://www.youtube.co
B04,B02
, est m/watch?v=7v2OnUti2e
Event Delegation om/java-tutorial
CLO04 Questio M&pp=ygUMI2phdmFj
Model, Event ns b25uZWN0,
https://www.youtube.co
Classes, Source of
m/watch?v=1vVJPzVza
Event and Event K8
Listener
Interfaces,
Adapter classes.
33-36 JDBC CLO04 B02,, B04 Discuss Quiz/T https://www.youtube.co
ion, est m/watch?v=7v2OnUti2e
Connectivity intro https://www.tutorialspo
Questio Questio M&pp=ygUMI2phdmFj
Introduction, ning ns int.com/java/ b25uZWN0,
https://www.youtube.co
working with
m/watch?v=1vVJPzVza
MySQL database, K8
registering the
drivers,
connecting to
database.
40-42 JDBC CLO04 B01 Lecture Quiz/T https://www.udemy.co https://www.youtube.co
est m/watch?v=7v2OnUti2e
Connectivity: m/java-tutorial/
Questio M&pp=ygUMI2phdmFj
Application ns b25uZWN0
Preparing SQL
statement.
Retrieving data
from MySQL
database.

Lab Plan:

Lab Experiment CLO TLM ALM Web References Audio-Video


No.
1 Ram is working as a data entry CLO01 Disc Quiz/T http://www.javatpoint.
ussio est
operator. He is adding records of com/java-tutorial
n, Questi Java Tutorial | Java Programming
employees which consist of name Ques ons Fundamentals | Java ...
tioni www.youtube.com › watch
of employee, designation of
ng
employee, city , phone number

Page 11 of 23
22CA026 / Advance Java Programming
Course Plan

and salary through command line.


He is adding the details of each
employee in this very order. Now,
he needs to display the details
separating each employee as a
separate record . Also, he has to
find the employee with largest
salary and smallest salary and
display their details.
Implement the scenario by
taking input only through
command line arguments
2 Perform following operations on CLO01 Ques Quiz/T https://www.tutorialsp https://www.youtube.com/watch?
tioni est v=8px36FWLdDs
number entered by user. oint.com/java/
ng Questi
a) Check whether the number is a ons
strong number or not. [Strong
number is a number whose sum of
factorials of each digit is equal to
the original number. Example 145]
b) Display prime numbers within a
range starting from 1 till the
number entered by user
c) Create a multiplication table for
the entered number till 100
d) Check whether the number is an
Armstrong number or not
e) Generate the reverse of the
entered number
Create separate functions for each
of these tasks.
3. Perform the following on strings CLO01 Disc Quiz/T https://www.udemy.co https://www.youtube.com/watch?
ussio est v=8px36FWLdDs
entered by user: m/java-tutorial/
n, Questi
a) Count Vowels, consonants, Ques ons
tioni
capital Letters, small letters,
ng
numbers and spaces in the string
b) Enter the reversed string in a
character array
c) Convert the given string into
uppercase
d) Check whether the entered

Page 12 of 23
22CA026 / Advance Java Programming
Course Plan

string is a palindrome or not


Create separate functions for each
of these tasks
4-5 Consider three String class CLO01, Disc Quiz/T https://docs.oracle.co https://www.youtube.com/watch?
CLO02 ussio est v=8px36FWLdDs
objects. Split the strings in to three m/javase/tutorial/
n, Questi
parts FIRST, MIDDLE AND Ques ons
tioni
LAST.
ng
a) Check the length of each string.
If the length is a multiple of 3,
split the string in three equal parts
b) If length is not a multiple of 3
and remainder is one, split the
string such that first and last
portions are same length whereas
the middle portion length is one
less than the two other portions
c) If length is not a multiple of 3
and remainder is two, split the
string such that first and last
portions are same length whereas
the middle portion length is one
more than the two other portions
Combine the strings in the order
given below to generate the final
string
Final string1=[FIRST of first
string][MIDDLE of third
string][LAST of second string]
Final string 2=[FIRST of second
string][MIDDLE of first
string][LAST of third string]
Final string 3=[FIRST of third
string][MIDDLE of second
string][LAST of third string]
Display all three final strings
6-7 Create a number guessing game. CLO01 Disc Quiz/T http://www.studytonig https://www.youtube.com/watch?
ussio est v=8px36FWLdDs
Ask the user to guess the number. ht.com/java
n, Questi
a) If the number entered by the Ques ons
tioni
user is more than the guessed
ng
number and the difference is more

Page 13 of 23
22CA026 / Advance Java Programming
Course Plan

than 5, throw an exception of


yours and give message “You
have gone too far”
b) If the number entered by the
user is more than the guessed
number and the difference is more
than 2, throw an exception of
yours and give message “You
have gone a bit ahead”
c) If the number entered by the
user is less than the guessed
number and the difference is more
than -5, throw an exception of
yours and give message “You
have stopped too early”
d) If the number entered by the
user is less than the guessed
number and the difference is more
than -2, throw an exception of
yours and give message “You
have stopped a bit early”
e) If the number entered by the
user is equal to the guessed
number, give him a message “you
got it!!. Congrats”.

The number of turns given to a


player should not be more than 5
and if he crosses the turns, throw
an exception and give message
“Your attempts are over!!. Better
Luck next time”.

Page 14 of 23
22CA026 / Advance Java Programming
Course Plan

8-9 CLO01, Disc Quiz/T http://www.javatpoi https://www.youtube.com/watch?


CLO02 ussio est v=8px36FWLdDs
nt.com/java-tutorial
n, Questi
Ques ons
tioni
ng

Ramesh is an employee of a Bank


whose hierarchy is as shown in the
figure. He has to maintain the
transactions of bank in various
branches. Implement the scenario
by creating an array of Bank class
objects. Fill the array with objects
of subclasses as per the request
customer of specific branch. Each
customer should have a unique ID.
Store the details of customers till
the user prompts for no further
entries.
Each customer should be provided
options for:
a) displaying his complete details
b) Credit/debit his account
Each account should have interest
added to it after every credit.
After complete data entry, solve
the following queries:
a) Count number of customers
whose account balance is more
than 80000
b) Display details of all customers
belonging to Chandigarh and
Kolkata branch
c) Count number of customers in
Delhi branch whose account type
is savings and whose balance in

Page 15 of 23
22CA026 / Advance Java Programming
Course Plan

more than balance of both Kolkata


and Chandigarh branch
d) Display the total balance of all
the branches at the end of day
10-11 Create an ArrayList of Strings CLO03 Disc Quiz/T https://www.tutorialsp https://www.youtube.com/watch?
ussio est v=rzA7UJ-hQn4
that enters the names of employees oint.com/java/
n, Questi
in an organization. The names Ques ons
tioni
should be input until the user
ng
enters the word “quit” . Perform
the following operations on these
names:
a)Write a method “switchpairs”
that switches the pairs of names
entered by the user. If the number
of names entered is an odd
number, the last name in the list
should remain at its position.
b) Write a method “marklength4”
that the marks the names with
length 4 by asterisk. For example
if the list is { seema, sonu, amit},
then list should be changed to {
seema, “****”,sonu,”****”,
“****”,amit, “****”}
c) Write a method
“remove_dupicate” that removes
any duplicate names from the list.
12-13 Create an ArrayList of numbers. CLO03 Disc Quiz/T https://www.udemy.co https://www.youtube.com/watch?
ussio est v=rzA7UJ-hQn4
Write a method removeBadPairs m/java-tutorial/
n, Questi
that accepts an ArrayList of Ques ons
tioni
integers and removes any adjacent
ng
pair of integers in the list if the left
element of the pair is larger than
the right element of the pair. Every
pair's left element is an even-
numbered index in the list, and
every pair's right element is an odd
index in the list. For example,
suppose a variable called list
stores the following element

Page 16 of 23
22CA026 / Advance Java Programming
Course Plan

values: [3, 7, 9, 2, 5, 5, 8, 5, 6, 3,
4, 7, 3, 1]
We can think of this list as a
sequence of pairs: (3, 7), (9, 2), (5,
5), (8, 5), (6, 3), (4, 7), (3, 1). The
pairs (9, 2), (8, 5), (6, 3), and (3, 1)
are "bad" because the left element
is larger than the right one, so
these pairs should be removed. So
the call of removeBadPairs(list);
would change the list to store the
following element values: [3, 7, 5,
5, 4, 7]

If the list has an odd length, the


last element is not part of a pair
and is also considered "bad;" it
should therefore be removed by
your method. If an empty list is
passed in, the list should still be
empty at the end of the call. You
may assume that the list passed
is not null. You may not use any
other arrays, lists, or other data
structures to help you solve this
problem, though you can create
as many simple variables as you
like.
14-16 Ramesh is a mathematics teacher. CLO04 Disc Quiz/T https://docs.oracle.co https://www.youtube.com/watch?
ussio est v=rzA7UJ-hQn4
He is currently teaching students m/javase/tutorial/
n, Questi
how to perform various Ques ons
tioni
mathematical operations on
ng
polynomials. Being fond of
programming, he wants to
generate a program in java that can
do the tasks for him. Use the
LinkedList collection defined in
Java to perform the following
operations on polynomials.

Page 17 of 23
22CA026 / Advance Java Programming
Course Plan

a) entering a polynomial of any


degree
b) Add/ Subtract two polynomials
and display result
c) Multiply two polynomials and
display the result
d) Print the coefficient of
polynomial term with largest
exponent from three polynomials
e) Copy the contents of one
polynomial to another
f) Concatenate two polynomials.
17-18 Write a class “StackExample” that CLO03, Disc Quiz/T http://www.studytonig https://www.youtube.com/watch?
CLO04 ussio est v=VE_AAUxTUCY
has the method ht.com/java
n, Questi
“getEvenNumbers” below. Ques ons
tioni
public static Stack
ng
getEvenNumbers(Stack stack)
The method receives a stack of
integers (implemented in the
provided Stack class) and returns a
new stack with all even numbers
from the initial stack (preserving
their original order). For example,
given the stack { 4, 5, 3, 2, 6, 9, 2
} (where 4 is at the top of the
stack), the method returns { 4, 2,
6, 2 }. The initial stack should
retain its original values when the
method ends. The class Stack has
methods: push (to add an integer
to the stack), pop (to remove an
integer from the stack) and
isEmpty (to know whether the
stack is empty or not).
19- Write a java program to perform CLO03, Disc Quiz/T http://www.studytonig https://www.youtube.com/watch?
20 CLO04 ussio est v=VE_AAUxTUCY
following using queue: ht.com/java
n, Questi
a) Reverse the queue using stack Ques ons
tioni
b) Reverse the first half of the
ng
elements and leave the second half
unchanged.

Page 18 of 23
22CA026 / Advance Java Programming
Course Plan

c) Move all even elements to the


front of the queue while
maintaining the relative order of
other elements.
21 CLO03, Disc Quiz/T https://www.tutorialsp https://www.youtube.com/watch?
CLO04 ussio est v=7v2OnUti2eM&pp=ygUMI2p
oint.com/java/
n, Questi hdmFjb25uZWN0,
Ques ons https://www.youtube.com/watch?
tioni v=1vVJPzVzaK8
ng
1.Use swings to create a counter
that increments the counter on
every click of the button count.
2.using swings, create another
GUI in which a number is entered
by the user and its factorial is
displayed in the text field. On
click of next button, next number
is taken and its factorial is
displayed in the text field.
22-24 CLO04 Disc Quiz/T https://www.udemy.co https://www.youtube.com/watch?
ussio est v=1vVJPzVzaK8
m/java-tutorial/
n, Questi
Ques ons
tioni
ng

Use swings/awt to create the


calculatordisplayed in the above
figure
25-27 Ramesh is a data entry operator in CLO04, Disc Quiz/T https://docs.oracle.co https://www.youtube.com/watch?
CLO05 ussio est v=7v2OnUti2eM&pp=ygUMI2p
an organisation. he has to maintain m/javase/tutorial/
n, Questi hdmFjb25uZWN0
the details of employees which he Ques ons
tioni
regularly needs to fetch and update
ng
as per the requirement. Design an
Graphical interface for him to get
the details of employees: the
requirements of GUI are:
a) A login page where existing user
can enter username and password
b) A signup for new employees in
which details of employees are to be
entered.

Page 19 of 23
22CA026 / Advance Java Programming
Course Plan

The details of employees required to


be maintained are:
a) Name
b) Designation
c) Phone
d) Salary
e) Department Name
f) Joining date
g) password
These details should be entered only
for the employees who are new to
the organisation as they need to be
registered. All details entered by the
user should be entered in the data
base so that they can be fetched as
per the requirement.
Once the record has been entered for
any employee, he should be given a
login name and password which he
or she can use for seeing his details.
The login and password of admin
would be unique and he should be
given a window in which he can
perform the following:
a) insert a record
b) delete a record
c) update a record
d) alter the field of the database
e)Fetch a record as per the
requirements. Fetching of records
can be on any field except joining
date, password and phone.

8. Remedial Classes5
Slow Learner Average Learner Fast Learner
•Remedial Classes •Doubt Sessions •Online Quiz
•Encouragement for •Presentations to be delivered •Participation in competitions
improvement using peer by them
tutoring

5 Refer to Annexure
Page 20 of 23
22CA026 / Advance Java Programming
Course Plan

9. Self-Learning6
Assignments to promote self-learning, survey of contents from multiple sources.

S.No Topics CLO ALM References/MOOCS


1 Inheritance, CLO01, Quiz/Test https://onlinecourses.nptel.ac.in/noc22_cs47/preview
Constructor CLO02 Questions
2 Collections, CLO03, Quiz/Test https://onlinecourses.nptel.ac.in/noc22_cs47/preview
Swings and CLO04 Questions
JDBC

10. Delivery Details of Content Beyond Syllabus7


Content beyond syllabus covered (if any) should be delivered to all students that would be planned, and schedule
notified accordingly.

Advanced
Topics,
Additional
S.No Reading, CLO POs ALM References/MOOCS
Research
papers and
any
1 Java Server CLO04 PO1,PO4,PO9 Group https://www.udemy.com/course/learn-
pages, Discussion java-se-8-and-prepare-for-the-java-
Enterprise associate-
Java Bean exam/?couponCode=IND21PM

11. Evaluation Scheme & Components:

Assessment Evaluation No. of % Weightage of Max. Mode of CLO


Type8 Component9 Type of Assessments11 Component Marks Assessment
Component10
Formative Component1 Continuous Lab 20% 20 Offline CLO02, CLO03
Evaluations
Lab Performance 02* Viva:40% 10
Internal Viva 01* File:30% 10
Written/Execution: 30%

Summative Component2 Sessional Tests(STs) 02** 30% 30 Offline CLO03,


CLO04
Summative Component3 End Term 01*** 50% 50 Offline CLO01,
Examination
CLO02,
CLO03,
CLO04,
CLO05
Total 100%

*Lab performance and Internal Viva is a mandatory evaluation taken during the semester. It is considered based on Lab practical file, viva and
written/execution. Two Lab Performances(LP) and one Internal Viva (IV) is to be taken during the semester and the ERP system will automatically pick best
of two lab performances and marks of internal viva for awarding final lab internal marks.
**Out of 2 Sessional Test(ST) the ERP system will automatically pics best of 2 ST’s for awarding marks. ST's to be held as per departmental academic
calendar.
*** As per academic guidelines minimum 75% attendance is required to become eligible for appearing in the End Semester Examination.

6 Refer to Annexure
7
Refer to Annexure
8 Refer to Annexure 2 of NCrF
9 Refer to Annexure
10 Refer to Annexure
11 Refer to Annexure

Page 21 of 23
22CA026 / Advance Java Programming
Course Plan

12. Syllabus of the Course:

Subject:
No. of
S.No. Topic(s) Weightage %
Lectures
1-2 Java Basics: 2
5
Introduction to basic concepts of java.
3-5 Constructor and class concept: 3
5
Introduction to constructor, object and class concept in context of java
language.
6-8 Arrays: 3
5
Introduction to concept of array of primitives and objects (one and two
dimensional).
9-11 Inheritance: 3
5
Meaning of inheritance in java and types of inheritances supported in
Java language.
12-14 Exception Handling: 3
5
Introduction to concept of exception handling in java, Types of
exceptions (checked /unchecked). Ways of handling exceptions.
15-17 Collection Classes: 3
20
Iterable& Collection Interface, Collection Interface Methods, Properties of
List Collection, Array List v/s linked list, Array List to Vector and Vector to
Linked List, Array List Traversal, Linked List Specific Methods.
18-20 Collection Classes: 3
20
Deque Interface Supporting LIFO and FIFO, Set Usages (HashSet and
TreeSet), Usage of List Iterator
21-23 AWT Components: 3
5
Layout Manager:
AWT basics, AWT hierarchy introduction, AWT component class.
border layout, grid layout, flow layout, Box layout.
24-26 Swing: 3
10
Introduction, hierarchy of java swing classes, JComponent class methods,
creating frame in swing.
27-29 JComponent: 3
5
JButton, Jlabel, JTextField, JCheckBox ,JRadioButton, JComboBox, JList.
AWT
and swing difference.
30-34 Event handling: 3
5
Event Delegation Model, Event Classes, Source of Event and Event Listener
Interfaces, Adapter classes.

Page 22 of 23
22CA026 / Advance Java Programming

You might also like