Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
54 views14 pages

Final COURSEPACK BTech (JAVA)

Uploaded by

Savi Nishad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views14 pages

Final COURSEPACK BTech (JAVA)

Uploaded by

Savi Nishad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

COURSEPACK (Fall 2023-24)

SCHEME
The scheme is an overview of work-integrated learning opportunities and gets students out into the real
world. This will give what a course entails.
Java & JavaScript Comprehensive
Course Title Course Type
B.Tech(CSE), CNCS
Course Code E2UC304C Class
III Sem
Weekly
Activity Credits Total Number of Assessment in
Hours
Weightage
Lecture 2 2 Classes per Semester

Tutorial 0 0
Instruction

Self-study
Practical 1 2

Practical
Tutorial
Theory
delivery Self-

SEE
1 8

CIE
study
Total 4 12 30 0 30 120 50% 50%
Course Course Dr. Sonia Saini
Dr. Avinash Dwivedi Ms. Mitali
Lead Coordinator
Bhatt

Theory Practical
 Dr. Sonia Saini  Dr. Sonia Saini
 Mitali Bhatt  Mitali Bhatt
 Dhrub Kumar  Dhrub Kumar
 Santosh Kumar (31841)  Santosh Kumar (31841)
 Avinash Dwivedi  Avinash Dwivedi
Names Course  Dhirendra Kumar Shukla  Dhirendra Kumar Shukla
Instructors  Ajay Shankar (1683)  Ajay Shankar (1683)
 R Nagendran  R Nagendran
 Prem Kant  Prem Kant
 Indrakumari  Indrakumari
 P. Rajakumar  P. Rajakumar
 Sumit Kumar Mishra (32559)  Sumit Kumar Mishra (32559)
 Ravi Sharma (31893)  Ravi Sharma (31893)
 V. Janakiraman  V. Janakiraman
 Harshit Jain  Harshit Jain
 Vipin Rai  Vipin Rai
 Neha Bagwari  Neha Bagwari
 Subash Harizan  Subash Harizan
 Vinod Kumar (32409)  Vinod Kumar (32409)
 Basu Dev Shivahare  Basu Dev Shivahare
 Sumit Kumar(32568)  Sumit Kumar(32568)
 Rakesh Bharati  Rakesh Bharati
 Aditi Chowdhary  Aditi Chowdhary
 Akhilesh Kumar Singh(32402)  Akhilesh Kumar Singh(32402)

COURSEPACK |
COURSE OVERVIEW
The course is designed to provide students with a comprehensive introduction to the Java programming
language and Java Script.
The goal of Object-Oriented Programming will be achieved by implementing inheritance, polymorphism,
abstraction, encapsulation and exception handling, multithreading, I/O Operations and Collection Concepts.
JDBC database connectivity will facilitate front-end and back-end integration. Socket programming will
help to develop client- server application. JavaScript facilitates in the development of web applications.

PREREQUISITE COURSE

Prerequisite course Yes Object Oriented Programming


required

COURSE OBJECTIVE
 To teach Object-Oriented Programming for solving versatile computational problems.
 Guide the students to build applications using Java and JavaScript.

COURSE OUTCOMES(COs)

Course Upon successful completion of this course, the student will be able to:
Outcomes
Apply object-oriented programming principles to develop Java programs, with a
E2UC304C.1. focus on exception handling and addressing relevant security considerations.

Develop Java programs that incorporate multithreading with synchronization, and


E2UC304C.2. utilize Abstract Window Toolkit (AWT) components for event handling.
Develop Java programs that utilize I/O streams, Java Database Connectivity (JDBC) and
E2UC304C.3.
work with collections for data organization and manipulation.
Develop dynamic web pages that interact with the Document Object Model
E2UC304C.4. (DOM) using JavaScript.

COURSEPACK |
BLOOM’S LEVEL OF THE COURSE OUTCOMES
Bloom's taxonomy is a set of hierarchical models used for the classification of educational learning
objectives into levels of complexity and specificity. The learning domains are cognitive, affective, and
psychomotor.

COMPREHENSIVE

CO No. Bloom’s Taxonomy Level(BTL)


Remember Understand Apply Analyze Evaluate Create
(KL1) (KL2) (KL3) (KL4) (KL5) (KL6)

E2UC304C.1 √ √
E2UC304C.2 √
E2UC304C.3 √
E2UC304C.4 √

PROGRAM OUTCOMES (POs):

PO1 Computing Science knowledge: Apply the knowledge of mathematics,


statistics, computing science and information science fundamentals to the
solution of complex computer application problems.
Problem analysis: Identify, formulate, review research literature, and analyze
PO2 complex computing science problems reaching substantiated conclusions using
first principles of mathematics, natural sciences, and computer sciences.
Design/development of solutions: Design solutions for complex computing
PO3 problems and design system components or processes that meet the specified
needs with appropriate consideration for the public health and safety, and the
cultural, societal, and environmental considerations.
Conduct investigations of complex problems: Use research-based knowledge and
PO4 research methods including design of experiments, analysis and interpretation of
data, and synthesis of the information to provide valid conclusions.
Modern tool usage: Create, select, and apply appropriate techniques, resources, and
PO5 modern computing science and IT tools including prediction and modeling to complex
computing activities with an understanding of the limitations.
IT specialist and society: Apply reasoning informed by the contextual
PO6
knowledge to assess societal, health, safety, legal and cultural issues and the
consequent responsibilities relevant to the professional computing science and
information science practice.
Environment and sustainability: Understand the impact of the professional
PO7
computing science solutions in societal and environmental contexts, and
demonstrate the knowledge of, and need for sustainable development.
Ethics: Apply ethical principles and commit to professional ethics and
PO8
responsibilities and norms of the computing science practice.
Individual and team work: Function effectively as an individual, and as a
PO9
member or leader in diverse teams, and in multidisciplinary settings.
PO10 Communication: Communicate effectively on complex engineering activities with
the IT analyst community and with society at large, such as, being able to comprehend
COURSEPACK |
and write effective reports and design documentation, make effective presentations,
and give and receive clear instructions.
Project management and finance: Demonstrate knowledge and understanding
PO11 of the computing science and management principles and apply these to one’s
own work, as a member and leader in a team, to manage projects and in
multidisciplinary environments.
Life-long learning: Recognize the need for, and have the preparation and
PO12
ability to engage in independent and life-long learning in the broadest context
of technological change.

COURSEPACK |
Program Specific Outcomes (PSOs):

Have the ability to work with emerging technologies in computing requisite to Industry
PSO1
4.0.
Demonstrate Engineering Practice learned through industry internship and research project
PSO2
to solve live problems in various domains.

COURSE ARTICULATIONMATRIX
The Course articulation matrix indicates the correlation between Course Outcomes and Program Outcomes and their expected
strength of mapping in three levels (low, medium, and high).

CO/PO Mapping (1 / 2 / 3 indicates strength of correlation) 3 - High, 2 - Medium, 1 – Low

Program Outcomes (POs)


COs PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2
E2UC102C.1 2 1 1 - 2 - - - - - - - - -
E2UC102C.2 2 - 1 - 2 - - - - - - 1 - -
E2UC102C.3 2 - 1 - 2 - - - 1 1 - 1 1 -
E2UC102C.4 2 - 1 - 2 - - - 1 1 - 1 1 -

COURSE ASSESSMENT
The course assessment patterns are the assessment tools used both in formative and summative examinations.

CIE
Type of Total Marks Grand Weightage
Course Total (CIE-SEE)
LAB Course-based
(C) MTE CIE SEE Marks
(Daily Project*
work/
Record)

COMPREHENSIVE 25 50 25 100 100 200 50-50

*Rubric for the course-based project


Preliminary Technical Technical
Type of Assessment Tools Viva-voce
Project Plan Seminar 1 Seminar 2
Course-based Project Work 05 05 05 10

PPP (Preliminary Project Plan): The preliminary project plan (PPP) provides an initial, overview of the
project and all of its known parameters. It outlines the project's objectives, relevance to the program, merit,
and conformity to current industry/government policy, proposed methodology, and expected outcomes. It
should also include any known constraints related to the time frame (Gantt Chart), budget, and, etc.

COURSEPACK |
COURSE CONTENT

THEORY+ PRACTICAL

THEORY:
BASICS OF JAVA
Introduction to object oriented programming - Features of Java – JDK-JVM- Keywords- Variables
- Data types – Operators-Expression- Control structures - - Type Casting -Classes and Objects
-Methods -Access specifiers & modifiers- Constructors - Method Overloading- this Keyword
- Static – Arrays- String - String Buffer-String handling mechanism-Command line arguments.
Wrapper Classes.

PACKAGE, INHERITANCE, POLYMORPHISM AND EXCEPTION HANDLING


Java API Packages - Package Access - Basics of Inheritance - Forms of Inheritance - Super
keyword – Final - Method Overriding - Abstract Class – Interface- Inner classes-Exception
Handling- Exception Hierarchy - Exception Types - Exception handling strategies -User defined
Exception. Linked structures in java

COLLECTION ,I/O STREAMS AND Threads


Collection Class -Collections Framework- Interface & Classes Implementation: Set- List-
Queue-Map- File- I/O Stream- Character Streams – Byte Streams - Object Serialization –Threads
- Thread states -Thread priority - Thread operations -– Thread Synchronization – Multithreading
-Generic Collections - Generic Classes and Methods.

JDBC-APPLET, AWT, SWING AND NETWORKING


Introduction to JDBC API-JDBC Architecture - JDBC Drivers- Database connectivity in Java
- CRUD Operations-java.sql methods and interfaces -Applets: Basics of applets - Applet
Architecture - Life cycle of an Applet - AWT: Event Handling-Delegation event Model
- Swing overview- Swing Components -Basics of Java Networking.

JAVASCRIPT

JavaScript basics – Built-in-functions-HTML Forms-Javascript Objects- Javascript Validation


- BOM-DOM-Javascript Events- Working with Objects and Classes.

PRACTICAL: Java Data Type, Expression, and Operators; Conditional Statements; Control statements;
Strings and StringBuffer Class. Array, Implementation of OOPS properties, Constructor overloading,
Abstract class and interface. Wrapper class and Linked Structure of Java. Multithreading, Exception
handling, Collection, CRUD operation and database connectivity, Networking with java. Inclusion of
JavaScript is designing application. Form generation, validation and use of different objects.

COURSEPACK |
LESSON PLAN FOR INTEGRATED COURSES of 3 CREDITS
FOR THEORY 15 weeks * 2 Hours = 30 Classes) (1credit = 1Lecture Hour)
FOR PRACTICAL 15 weeks * 2Hours = 30 Hours lab sessions (1 credit = 2 lab hours)

L- Topic for Delivery Theory /


No Tutorial / Skills Competency
Practical Plan
1 Introduction to object oriented programming - Theory Use JDK to
Features of Java – JDK-JVM- Keywords- execute java CO1
Variables - Data types programs
2 Operators-Expression- Control structures - - Theory including data
Type Casting types. Operators
3 Java Data Type, Expression, and Operators: Practical and control
Pseudo code & Program statements
4 Programs of loops, patterns and util package Practical
5 Classes and Objects -Methods -Access Theory Modeling of real
specifiers & modifiers world problem
6 Theory and use of
Method Overloading- this Keyword – Static, overloading
Constructors, constructor overloading.
7 Program to create classes, use of access specifiers, this Practical
and final keyword
8 Implementation of constructor and constructor Practical
overloading
9 Wrapper Classes, Command line arguments Theory String handling
10 and interchange
Array, String & StringBuffer class, String Theory
of primitive types
Tokenizer
and objects
11 Write programs to convert primitive data types to Practical
object and vice-versa
12 Array, String and Stringbuffer implementation Practical
Use of String Tokenizer in fragmenting string
13 Java API Packages - Package Access, Basics Theory Use packages and
of Inheritance - Forms of Inheritance - Super apply inheritance
keyword – Final, Method Overriding, and abstraction
14 Abstract Class – Interface Theory
15 Creation of package, use of builtin packages, final and Practical
super keywords
16 Implementation of Inheritance, Abstract class and Practical
Interface
17 Inner classes, Exception Handling- Exception Theory Use inner class
Hierarchy - Exception Types and will able to
18 Theory stop abrupt
Exception handling strategies -User defined program
Exception termination using
19 Program to create inner classes Practical Exception
20 Program implementing exception handling Practical handling
Development of user defined exceptions
21 Threads - Thread states -Thread priority Theory apply CO 2
multitasking with
22 Theory concurrency
Thread operations -– Thread
COURSEPACK |
Synchronization – Multithreading
23 Program to create threads using Thread class and Practical
Runnable interface
24 Program to set priority, handle shared resource Practical
25 Applets: Basics of applets - Applet Theory Create user
Architecture. Life cycle of an Applet interface with and
26 Theory without browser
AWT: Event Handling-Delegation event with interaction
Model
27 Program to create Applet with user interaction Practical
28 Creation of user interfaces with event handling Practical
29 Swing overview- Swing Components Theory
30 Different types of Layout managers Theory
31 Program to create UI using Swing Practical
32 Program to use different layout managers Practical
33 - I/O Stream- Character Streams – Byte Theory use different CO 3
Streams streams in
34 Object Serialization, keyword-transient Theory reading- writing
Program to create streams, reading and writing data data and develop
35 Practical
client server
36 Program to convert object to store data in file and Practical
reading. programs
Program to use transient keyword
37 Basics of Java Networking : URL, IP Address, Theory
TCP, UDP, client socket, server socket
38 Client- Server communication Theory
39 Program to use URL, IP Address and protocols Practical
40 Implementation of client-server communication Practical
41 Introduction to JDBC API-JDBC Theory CRUD operations
Architecture using database
42 Theory and use collection
JDBC Drivers- Database connectivity in in keeping data in
Java- CRUD Operations-java.sql methods different data
and interfaces structures
43 Program to perform CRUD operation using JDBC Practical
and oracle using Statement
44 Program to perform CRUD operation using JDBC Practical
and oracle using PreparedStatement
45 Collection Class -Collections Framework- Theory
Interface & Classes Implementation: Set-
List- Queue-Map
46 Iterator, Generic Collections - Generic Theory
Classes and Methods
47 Program to use different collection data structures Practical
in keeping objects
48 Program to use iterator in Java collection Practical
49 Introduction to Java Script, Pop up boxes, Theory Use different CO 4
50 HTML and different ways to add JavaScripts, Theory objects in
Form creation and validation developing web
51 Program to use JavaScript using different ways Practical pages
COURSEPACK |
52 Creation of a form and validation with proper Practical
entries
53 BOM-DOM Models Theory
54 Different JavaScript Objects & Event Handling Theory
55 Write programs using different JavaScript objects Practical
with different methods
56 Create a collection of webpages using JavaScript Practical
57 Revision Theory
58 Revision Theory
59 Revision Practical
60 Revision Practical

PRACTICE PROBLEMS

Exercises in Java & JavaScript (Assignments) (Min 50 Problems*)

S. No Program
1 Write a program to find factorial of a number with
recursion and iteration
2 Java IO program to take input through keyboard at
runtime.
3 Write a program to reverse a number
4 Write a Java program to Print Sum of Series 1+x+x2+x3+......+xn in java
5
Write a program to display the following pattern:

12
123
1234
12345
6
7
Write a java program to create patterns
*
**
***
****
8 Write a program to display the following pattern:
*********
*******
*****
***
*
9 Write a Java Program to Make a Simple Calculator Using
switch...case and Scanner class.
10 Write a program to Search an Element in an Array in java.
COURSEPACK |
11 Write a program to add two matrices of order 3X3
12 Create a class Student (name, roll_no, marks) with one method show() and initialize instance variables using all the
ways: reference, method and constructor.
13 WAP showing importance of this keyword
14 WAP implementing Constructor overloading and use this key word in overloading.
15 WAP to access static block, static variable and static method.
16 WAP in java to convert primitive data type to object and vice versa using Wrapper classes both the ways: implicitly
and explicitly.
WAP to show that String is immutable
17 WAP to make String mutable using StringBuffer class
18 Program to Illustrate the use of Methods of String
Class
Write a java program with menu to solve following
queries
1. Count Vowels and Consonants in a String
2. Count the Number of Duplicate Words in a String
3. Count Number of Words in Given String
4. Count the Number of Occurrences of Substring in a
String
5. Count the Occurrences of Each Character in String
6. Java Program to Remove Duplicate Words from
String

19 Using String Tokenizer separate any string in token using space delimiter

20 Create 2 packages P1 & P2 and create classes Student and BTech in P1 and P2 respectively. Check the
accessibility using all the access modifiers.
21 WAP to implement 3 interfaces and extend one class.
22 Implement multiple inheritance in java using interface.
23 WAP to show the use of Final keyword also initialize a final instance variable which is declared but not
initialized.
24 Write a Java program to create an abstract class named Shape that contains two integers
and an empty method named print Area ().
25 Provide three classes named Rectangle,
Triangle, and Circle such that each one of the classes extends the class Shape. Each one
of the classes contains only the method print Area () that prints the area of the given
shape.
26 Write a Java program that reads a list of integers from the user and throws an exception if any
numbers are duplicates.
27 WAP to access method of inner class in java.
28 WAP to stop access any method of inner class in java.

29 Write an user defined exception “low amount” and it should be raised when amount goes below
10000.
30 Write a Java program to iterate through all elements in a linked list starting at the specified
position.
31 Write a Java program to insert the specified element at the specified position in the linked list
(Without using collection).
32 Program to delete duplicate object from an arraylist
33 Write a Java program that implements a multi-thread application that has three threads.
First thread generates random integer every 1 second and if the value is even, second
thread computes the square of the number and prints. If the value is odd, the third thread will print the
value of cube of the number.
COURSEPACK |
34 Install a database (Mysql or Oracle). Create a table which should contain at least the following fields: name,
password, email-id, phone number Write a java program to connect to that database and extract data from the tables
and display them. Insert the details of the users who registers with the UI, whenever a new user clicks the submit
button in the registration page.
35 Write a Java Program to
a. Develop an applet in Java that displays a simple message.
b. Develop an applet in Java that receives an integer in one text field, and
computes its factorial Value and returns it in another text field, when the button
named “Compute” is clicked.
36 Write a Java program that creates a user interface to perform integer divisions. The user enters two
numbers in the text fields, Num1 and Num2. The division of Num1 and Num 2 is displayed in the Result
field when the Divide button is clicked. If Num1 or Num2 were not an integer, the program would throw a
Number Format Exception. If Num2 were Zero, the program would throw an Arithmetic Exception.
Display the exception in a message dialog box.
37 Create an user interface using Swing and apply insert, delete, update operations. Also show the students
details
38 Write a Java program that simulates a traffic light. The program lets the user select one of three lights: red,
yellow, or green with radio buttons. On selecting a button, an appropriate message with “Stop” or “Ready”
or “Go” should appear above the buttons in selected color. Initially, there is no message shown
39 Write a Java IO program to read File.
40 Write a Java IO program to write in a File.

41 Write a Java IO program to read & write in a File.


42 Using Serialization, convert objects into stream of bytes so that it can be written into a file also complete
deserialization.

43 WAP using transient keyword


44 Program to create sockets and establishment connection between client and server.

45 Program to create sockets and establishment connection between client and server with read and write in both the
way (Chat application).
46 Create a registration form and put validation also checks on values entered by the users using java scripts.
Program to stop user submitting blank form

47 Write an HTML program to design an entry form of student details and print the values filled in the form using java
script.
48 Develop a Web Page to display browsers information and print the information of the page.
49 Write a java script program which shows history and other DOM objects
50 Create a form using form elements and stop user to submit empty field.
To validate an email id

COURSEPACK |
BIBLIOGRAPHY

Text Book:

1. Herbert Schildt, “Java the Complete Reference”, Ninth edition, Tata Mc-Graw Hill ,2014.
2. Professional JavaScript for Web Developers 3rd Edition, Nicholas C. Zakas.Wrox Publication.
3. Kathy Sierra, and Bates Bert. Head First Java: A Brainc-Friendly Guide. " O'Reilly Media, Inc.",
Second Edition, 2009

Reference Books:

1. H.M. Deitel and P.J. Deitel,” Java How to Program”, Pearson Prentice Hall Seventh Edition.
2. Kathy Sierra, and Bates Bert. Sun Certified Programmer for Java. McGraw Hill Publications, 2008.
3. Keyur Shah, Gateway to Java Programmer Sun Certification, Tata McGraw Hill, 2002.
4. Joshua Bloch, ―Effective Java: A Programming Language Guide, Second Edition, Pearson, 2008.
5. Bruce Eckel – “Thinking in Java” Pearson Prentice Hall Third Edition-2006
6. Kogent Learning Solutions Inc,”JAVA 7 Programming Black Book”, DreamTech Press, 2010.

SWAYAM/NPTEL/MOOCs Certification:
1. https://onlinecourses.swayam2.ac.in/cec22_cs20/preview
2. https://onlinecourses.nptel.ac.in/noc22_cs32/preview
3. https://onlinecourses.nptel.ac.in/noc19_cs42/preview

Optional certifications and online platforms:


1. https://www.codechef.com/practice/
2. https://skillsforall.com/course/

COURSEPACK |
STUDENT-CENTEREDLEARNING (SELF-LEARNING TOWARDS LIFE-LONG-LEARNING)

Self-Learning (it’s a typical course-based project to be carried out by a whole class in groups of four students
each; they should exhibit higher level KLs)

The students, in a group, are expected to conceive an idea based on the content (objectives/outcomes) and apply
the suitable knowledge to demonstrate their learning.

A list of project statements can be offered to the students to choose or students can conceive their own ideas (teamwork),
design and develop the product/process/service and implement the same.

SOME SAMPLE PROJECT (Psychomotor skills) (Min 30 Projects*)


To enhance their skillset in the integrated course, the students are advised to execute course-based Design projects.
Some sample projects are given below:

A) COURSE-BASED PROJECT (Psychomotor skills)

S.
No. Project Name Description
Student Develop a console-based application for managing student records, including features for
Management adding, updating, and displaying student information.
System
1
2 Employee Payroll System Develop an application for calculating and managing employee payroll, including salary
calculations, tax deductions, and paystub generation.

3 Inventory Tracking Create an inventory management system for tracking products, restocking items, and
System generating reports on inventory levels.

4 Contact Build a Java program for managing contacts and organizing them into categories. Include
Management features for adding, editing, and searching for contacts.
Application
5 Music Player Create a simple music player that can load and play audio files. Implement features like
playlist creation, playback controls, and audio visualization.
6 Text-Based Design a text-based adventure game where players make choices to navigate through a story,
Adventure Game solve puzzles, and complete quests

7 Hotel Reservation Design a program that allows users to make hotel room reservations, view availability, and
System manage bookings.

8 Personal Finance Design a personal finance tracker that allows users to log and categorize their income and
Tracker expenses. Provide insights into spending patterns

9 File Explorer Create a simple file explorer application that allows users to navigate through directories,
view files, and perform file operations such as copying and deleting

10 Student Gradebook Build a program for teachers to manage student grades, calculate averages, and
generate report cards.

COURSEPACK |
11 Online Quiz Build an interactive quiz application where users can take quizzes on various topics.
Application The program should keep track of scores and provide feedback on quiz performance

12 Employee Develop an application for managing employee records, including features like adding new
Management employees, updating details, and generating reports.
System
13 Online Voting Create a console-based application that simulates an online voting system for conducting
System polls and elections. Users can vote for candidates, and the system tallies the results.

14 Banking System Create a banking system simulation where users can open accounts, make transactions, and
Simulation view their account balances. Implement features like interest calculation and account types.

15 Mini Social Media Build a simplified social media platform that allows users to create profiles, post messages,
Platform and connect with others. You can implement features like timelines and user interactions.

COURSEPACK |

You might also like