DCSD 22.1F Enterprise Application Development-1
DCSD 22.1F Enterprise Application Development-1
1.
a. List five important practices used in enterprise application development.
(05 Marks)
b. List out two ways of implementing abstraction in Java. Write sample codes for each
way. (06 Marks)
c. The following codes generate an error(s) during the compilation. You are required to
find the root cause and recommend a solution to avoid error(s). (04 Marks)
class Human
{
}
class Employee
{
}
class Manager extends Human, Employee
{
}
d. You are required to write Java codes to create a package to store the below class
Product. Make the attribute price visible inside the class and the method show is visible
inside the package.
(05 Marks)
class Product
{ float price;
public void show()
{
}
}
Page 1 of 3
2.
Program Codes:
i. You are required to list identified errors and label them as compile-time errors
and runtime errors. (05 Marks)
ii. Do you think the above codes are free of exceptions? If yes, justify your answer.
If not, write codes to handle them. (05 Marks)
3.
Page 2 of 3
4. You are required to write java programming codes to implement the below scenario in an
enterprise-level application.
i. Draw the expected User Interface (UI) with appropriate components and name the
components. (08 Marks)
ii. Write java codes to handle the event. Provide necessary responses. The following
code space is given. (12 Marks)
Description:
The user interface accepts the Type of Customer, Requested Loan Amount, Period(years)
and output Interest Amount. There are three customer types, and three periods (3
Years|6Years|10 Years) are predefined.
Table:
Customer Type Annual Interest Rate (%)
A 10%
B 12%
C 8%
5.
a. List out and state the purpose of classes and interfaces in JDBC API used to interact
with a database. (04 Marks)
b. Briefly explain the reasons for generating SQL exceptions when communicating with
the database. (03 Marks)
c. Write a java class to create a connection to the following database. (04 Marks)
Database Name : office
Username : test
Password : test1
d. Write java codes to retrieve data from the table given below. Use a method to write
your codes. (04 Marks)
Table : Employee (employee id, employee age, employee salary)
e. Use diagram and explain how to use MVC architectures used in enterprise application
development. (05 Marks)
Page 3 of 3