0% found this document useful (0 votes)
4 views2 pages

ADP Lab 3

Uploaded by

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

ADP Lab 3

Uploaded by

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

APPLICATION DEVELOPMENT PROJECT USING JAVA

(CSE4171)
Assignment - 3
Topic: Creating a Maven Project, Defining a POJO Class,
Generating runtime object using Spring IoC and Injecting
Dependencies.

________________________________________________________________________________

1. Write a POJO class named Person with the following details


a. Name (String)
b. Age (int)
c. City (String)
d. Phone number (List)
take the input from the user and print the details.
2. Write a Java Program to create a class Student with the following instance
members: -
a. Student ID (int)
b. Student Name (String)
c. Student Branch (String)
d. Student Phone Numbers (List)
e. Student Course name with fees (Map)
Use setter and getter methods to initialize and fetch the details. Using
Spring Core - IoC, inject the Object using XML Configuration.
3. Write a Java Program to create a class Employee and Address with the
following instance members: -
a. class Employee
i. Employee ID (int)
ii. Employee Name (String)
iii. Employee Department (String)
iv. Employee Address (Reference type)
b. Class Address
i. Street (String)
ii. City (String)
iii. State (String)
iv. Pin code (int)

1
Using Spring IoC, Constructor approaches to inject the Object.
4. Write a Java Program to create a class Customer with the following
instance members: -
a. Customer Name (String)
b. Customer Phone Number (List)
c. Customer Email ID (String)
Using Spring IoC, Annotation approach to inject the Object

5. Write a simple Spring Application, to understand the life of beans.

You might also like