Professional Documents
Culture Documents
DSE 20.1F Enterprise Application Development-1
DSE 20.1F Enterprise Application Development-1
D. Write a java application to create a package “office” to keep class Employee. Use the
information given below. It is sufficient to program the given class. Write the import statement
for created package to use the class separately. (05 Marks)
Class: Employee
Method: displayData(int,String,String);
//This gets age, name of the employee and address of the employee.
Page 1 of 3
Question 02[25 Marks]
A.
i. List two run time errors. (02 Marks)
ii. Briefly explain try, catch, and finally used in exception handling. (03 Marks)
iii. Differentiate Checked Exception and Unchecked Exception. (03 Marks)
iv. What is the usage of the keyword “throws” in programming? (02 Marks)
v. The following part of the program successfully compiled. But it creates an exception
when it is running. You are required to write program codes to handle it. (05 Marks)
Formula:
// Parse degrees Celsius as a double and convert to Fahrenheit.
// Consider tempTextField as the inputText field which is designed to enter the
// Celsius temperature value.
int tempFahr = (int)((Double.parseDouble(tempTextField.getText()))* 1.8 + 32);
Program must contain,
Page 2 of 3
i. Java program to implement above UI design. (12 Marks)
ii. Button Click action event handling (Use the above conversion formula for the
calculation). Display output as a message. (06 Marks)
iii. Input Validation, show following Error dialog alert if user enters nonnumeric value.
(02 Marks)
C. Briefly introduce the following items in the Collection framework. Write java codes to store
names of employees in a list and output stored values using each below. (08 Marks)
i. List
ii. Set
D. Write a java console application to perform following operations. You are required to establish
connection prior to perform operations. (08 Marks)
i. Insert customer id, customer first name, mobile number to customer table.
ii. Search and display customer details of customer id 1300.
Database : supermarket
Table : customer
Fields: customer_id number [5]
customer_first_name text [15]
mobile_number number [10]
Page 3 of 3