Data Science and Java Programming Curriculum
Data Science and Java Programming Curriculum
Vision
Mission
1. To provide theoretical and practical knowledge through quality teaching learning to develop
competent engineers.
2. To create an ambience that facilitates research, entrepreneurship and collaborations leading
to emergence of innovators and future leaders.
3. To develop a student-centric approach that inculcates moral, ethical values and leadership
skills for holistic development.
4.
Vision:
research, and skill development to produce innovators and future leaders for societal
aspects
Mission:
To deliver quality theoretical and practical data science education, developing skilled
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
To instill ethical values, leadership skills, and fosters holistic development in data
science professionals.
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
PO 11: Life-Long Learning: Recognize the need for, and have the preparation and ability for i)
independent and life-long learning ii) adaptability to new and emerging technologies and iii)
critical thinking in the broadest context of technological change. (WK8)
Syllabus
Full Stack Java Programming
Sr. Name of Module Detailed Content Hr CO
No. s Mapping
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
IV .
Java Script: Introduction to JavaScript: 5
Fundamentals
Conditionals Statements, Loops, Functions,
of Java Script
Arrays, Objects, Control Flow, Math Function,
Browser Object Model, Document Object
Model.
DOM Manipulation: Introduction to the
DOM, Defining the DOM, LO4
Defining DOM, Dom Tree, Language-Specific
DOMs, Accessing relative nodes, Checking the
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Course objectives:
Design and implement programs involving Client and Server Side Programming.
Study different design patterns in web programming and understand the working of react
framework.
To describe the Spring Framework and implement the related case studies.
Course outcomes:
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Elaborate and design applications using Client and Server Side Programming.
LIST OF EXPERIMENTS
Expt. No. Name of the Experiment
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
S/W Requirement JDK 1.8 and above, Notepad,Net Beans 8.0.1, HTML,CSS,React, Online
Java Compiler
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Experiment No.1
Resources Required:
· Text Editor (e.g., Notepad++) or IDE (e.g., Eclipse, IntelliJ IDEA, NetBeans)
Theory:
In Java, a class is a blueprint for creating objects. A class contains fields (variables) and
methods (functions) that define the behavior of an object. An object is an instance of a class.
Key Concepts:
Example:
If you define a class called Car, you can create multiple Car objects with different properties.
Class Syntax
class ClassName {
// Fields (variables)
dataType variableName;
// Methods
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
returnType methodName() {
// method body
Object Syntax:
Source Code:
Source Code:
// Class definition
class Student {
// Data members (fields)
String name;
int age;
// Main class
public class Main {
public static void main(String[] args) {
// Creating an object of Student
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Output:
Name: Alice
Age: 20
Conclusion:
The Java program successfully demonstrates the implementation of class and object. We
defined a class Student with fields and methods, then created an object student1 to access
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Experiment No.2
Resources Required:
· Text Editor (e.g., Notepad++) or IDE (e.g., Eclipse, IntelliJ IDEA, NetBeans)
Theory:
many powerful features that make it widely used in software development. Encapsulation,
Polymorphism means many forms It allows the same function name to behave differently based
on context (i.e., number or type of arguments, object type, etc.).
Achieved using:
Method Overloading
Constructor Overloading
Achieved using:
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Method Overloading (Compile-Time Polymorphism) having multiple methods with the same
name but different parameter lists in the same class is called method overloading.
Syntax:
class ClassName {
void display() { }
void display(int a) { }
void display(String s) { }
Constructor Overloading
Syntax:
class ClassName {
ClassName() { }
ClassName(int a) { }
ClassName(String s) { }
Source Code:
1. Constructor Overloading:
class Student {
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Student() {
[Link]("Default Constructor");
Student(String name) {
}
Output:
Default Constructor
Name: Gauri
2. Method Overloading:
class Calculator {
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Output:
Sum: 15
Sum: 6.0
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Concatenation: HelloJava
Conclusion:
This Java program successfully demonstrates the implementation of constructor and method
overloading.
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Experiment No 3
Aim: Write a Java program to implement Inheritance and exception handling
Resources Required:
Theory:
1. Inheritance in Java:
Inheritance is one of the core principles of Object-Oriented Programming (OOP). It allows a
class (known as a subclass or child class) to acquire the properties and behaviors (fields and
methods) of another class (called a superclass or parent class).
Inheritance promotes code reusability, method overriding, and helps in establishing a natural
hierarchy between classes.
Types of Inheritance in Java:
Single Inheritance
➤ One class inherits from one superclass.
Example: class B extends A {}
Multilevel Inheritance
➤ A class inherits from a derived class, forming a chain.
Example: class C extends B extends A {}
Hierarchical Inheritance
➤ Multiple classes inherit from a single parent class.
Example:
class A {}
class B extends A {}
class C extends A {}
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Java does not support multiple inheritance using classes (to avoid ambiguity), but it is
supported using interfaces.
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
// Superclass
class Vehicle {
String brand;
Vehicle(String brand) {
[Link] = brand;
void showBrand() {
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
// Subclass
String model;
[Link] = model;
void showModel() {
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Output:
try {
int a = 10;
int b = 0;
} catch (ArithmeticException e) {
} finally {
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Output:
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Experiment No 4
Aim: Write a Java program to implement website using Html and CSS
Resources Required:
· Text Editor (e.g., Notepad++) or IDE (e.g., Eclipse, IntelliJ IDEA, NetBeans)
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
It controls how the webpage looks: fonts, colors, backgrounds, spacing, borders, and
layout.
CSS follows the concept of separation of concerns → HTML defines structure, CSS
defines style.
CSS can be applied in three ways:
Inline CSS – inside an element tag
Internal CSS – inside <style> in the head section
External CSS – stored in a separate .css file and linked with <link>
CSS makes the website attractive, user-friendly, and responsive (adjustable on different
devices)
HTML + CSS Together:
When HTML and CSS are combined, we get a complete and styled webpage. For example:
HTML defines a header with the tag <header>.
CSS styles it by giving background color, text alignment, and padding.
This separation makes websites easier to design and maintain.
Source Code:
<!DOCTYPE html>
<html>
<head>
<title>My Simple Website</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f6f9;
color: #333;
}
header {
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
background-color: #4CAF50;
color: white;
padding: 20px;
text-align: center;
}
main {
padding: 20px;
max-width: 800px;
margin: auto;
}
h1, h2 {
color: #4CAF50;
}
a{
color: #4CAF50;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
footer {
text-align: center;
background: #333;
color: white;
padding: 10px;
margin-top: 20px;
}
ul {
list-style-type: square;
padding-left: 20px;
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
}
</style>
</head>
<body>
<header>
<h1>Welcome to My Website</h1>
<p>This is a very simple website made with HTML + CSS</p>
</header>
<main>
<h2>About</h2>
<p>I am learning HTML and CSS. This is my first styled web page.</p>
<h2>Links</h2>
<ul>
<li><a href="[Link] to Google</a></li>
<li><a href="[Link] to Wikipedia</a></li>
</ul>
<h2>Contact</h2>
<p>You can email me at <a
href="[Link]
</main>
<footer>
<p>© 2025 My Simple Website</p>
</footer>
</body>
</html>
Output:
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Conclusion:
This Java program successfully demonstrates the implementation of website using HTML
and CSS.
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Experiment No 5
Aim: Write a Java program to implement mail validation using Java Script
Resources Required:
Theory:
Features of JavaScript
Client-Side Execution: Runs directly in the user’s browser without needing server
interaction.
Interpreted Language: Does not require compilation; executed line by line.
Lightweight & Fast: Designed for quick execution inside web pages.
Object-Oriented: Uses objects and prototypes (not classical classes like Java, though ES6
introduced class syntax).
Event-Driven: Reacts to user actions like clicks, inputs, mouse movements, etc.
Platform Independent: Runs on any operating system and browser.
Case-Sensitive: Identifiers (variable names, functions) are case-sensitive.
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Source Code:
<!DOCTYPE html>
<html>
<head>
<title>Email Validation</title>
<script>
function validateEmail() {
let email = prompt("Please enter your email address:");
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Output:
Conclusion:
This Java program successfully demonstrates the implementation of Email Validation using
Java Scipt.
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Experiment No 6
Aim: Write a Java program to implement document object model to change the background color
of the web page automatically after every 5 seconds
Resources Required:
· Text Editor (e.g., Notepad++) or IDE (e.g., Eclipse, IntelliJ IDEA, NetBeans)
In this program, JavaScript (embedded within an HTML file) is used to manipulate the DOM.
The document object in JavaScript represents the entire HTML page. By accessing
[Link], we can modify the background color property of the webpage.
The program defines an array of colors and uses a timer function setInterval() to automatically
change the background color every 5 seconds. Each time the timer triggers, the DOM is updated
by setting a new background color, creating a dynamic and visually interactive effect on the
webpage.
Source Code:
<!DOCTYPE html>
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
<html>
<head>
<script type="text/javascript">
var index = 0;
function changeColor() {
[Link] = colors[index];
</script>
</head>
<body>
</body>
</html>
Output:
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Conclusion:
This Java program successfully demonstrates document object model to change the background
color of the web page automatically after every 5 seconds
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Experiment No 7
· Text Editor (e.g., Notepad++) or IDE (e.g., Eclipse, IntelliJ IDEA, NetBeans)
Theory:
Java Servlet is a Java program that runs on a Java-enabled web server or application server. It handles
client requests, processes them and generates responses dynamically.
Features
Servlets work on the server side.
Servlets are capable of handling complex requests obtained from the web server.
Generate dynamic responses efficiently.
Types of Servlets
1. GenericServlet
It’s an abstract class that implements the Servlet interface.
Protocol-independent (does not depend on HTTP).
Provides basic lifecycle methods (init(), destroy()) and the main method service(ServletRequest
req, ServletResponse res).
2. HttpServlet
Extends GenericServlet.
Specifically designed for handling HTTP requests and responses.
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
/**
*
* @author DS
*/
public class MyGenericServlet extends HttpServlet {
@Override
public void service(ServletRequest request, ServletResponse response)
throws ServletException, IOException {
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
[Link]("text/html");
[Link]().println("<h1>Hello from HTTP Servlet (GET)!</h1>");
}
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
[Link]("text/html");
[Link]().println("<h1>Hello from HTTP Servlet (POST)!</h1>");
// Process form data, etc.
}
}
Output:
generic Servlet
http Servlet
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Conclusion:
This Java program successfully demonstrates servlet implementation.
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Experiment No 8
Aim: Write a Java program to implement JSP implicit and explicit object
Resources Required:
· Text Editor (e.g., Notepad++) or IDE (e.g., Eclipse, IntelliJ IDEA, NetBeans)
Theory:
JavaServer Pages (JSP) is a server-side technology that creates dynamic web applications. It
allows developers to embed Java code directly into HTML pages and it makes web development
more efficient.
JSP is an advanced version of Servlets. It provides enhanced capabilities for building scalable
and platform-independent web pages.
Features :
It is platform-independent; we can write once, run anywhere.
It simplifies database interactions for dynamic content.
It contains predefined objects like request, response, session and application, reducing
development time.
It has built-in mechanisms for exception and error management.
It supports custom tags and tag libraries
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
These are predefined Java objects provided by the JSP container, offering direct access to
fundamental web components
1. request:Represents the HttpServletRequest object, providing access to client request data,
parameters, and attributes.
2. response:Represents the HttpServletResponse object, used for sending responses back to the
client, setting headers, and managing output.
3. out:Represents the JspWriter object, used for writing content directly to the response stream
that will be sent to the client.
4. session:Represents the HttpSession object, used for managing user-specific data across
multiple requests within a single session.
5. application:Represents the ServletContext object, providing access to application-wide data
and resources shared across all users and sessions.
6. config:Represents the ServletConfig object, used to access initialization parameters defined
for the JSP or servlet.
7. pageContext:Represents the PageContext object, providing access to all other implicit
objects and managing attributes within different scopes (page, request, session, application).
8. page:Represents the current JSP page instance (equivalent to this in a Java class).
9. exception:Represents the Throwable object, available only in error pages, providing details
about an exception that occurred.
Source Code:
<%@ page language="java" contentType="text/html" pageEncoding="UTF-8"
isErrorPage="true" %>
<html>
<head><title>JSP Implicit & Explicit Objects</title></head>
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
<body>
<%
// 1. request - get parameter
String name = [Link]("name");
if (name == null) name = "Guest";
// 3. out - print
[Link]("<h3>Hello, " + name + "</h3>");
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
</body>
</html>
Output:
Hello, Alice
Servlet Name: [Link]
Application Title: Simple JSP Demo
Page Object: [Link].example_jsp
No exception on this page.
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Experiment No 9
Theory:
Source Code:
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
package javaapplication1;
import [Link];
import [Link];
import [Link];
Connection
con=[Link]("jdbc:derby://localhost:1527/college","meet","meet");
[Link]("Connection created");
[Link] stmt=[Link]();
[Link]("Statement created");
[Link]("table created");
[Link]("Record inserted");
Output:
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
run:
Connection created
Statement created
table created
Record inserted
Conclusion:
This Java program successfully demonstrates JDBC Concept.
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Experiment No 10
Theory:
React is an open-source JavaScript library developed by Facebook (Meta) for building user
interfaces (UIs), particularly for single-page applications (SPAs) where performance and
dynamic updates are important.
Advantages of React
High performance due to Virtual DOM.
Reusable components → faster development.
Strong community and ecosystem.
Easy integration with other libraries/frameworks.
Supports React Native for mobile app development.
Limitations of React
Requires learning JSX (not pure JavaScript).
React focuses only on the view layer → additional libraries are needed for routing (React
Router) or state management (Redux, Context API).
Frequent updates may confuse beginners.
Applications of React
Single Page Applications (SPA).
Dashboards and interactive websites.
Social media platforms (e.g., Facebook, Instagram).
E-commerce websites
Cross-platform mobile apps (React Native).
Source Code:
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
Conclusion: The design of the web page using React has been successfully demonstrated.
SɅRɅSWɅTI
College of
Department of Computer SɅRɅSWɅTI Engineering
Engineering (DS)
SɅRɅSWɅTI