Sessional 1
Sessional 1
Section – A
Attempt all the questions from this section. (2 x 10 = 20 Marks)
Q.NO. Questions Marks CO KL
Section-B
Attempt all questions of this section. (5 x 4 = 20 Marks)
Q.No. Questions Marks CO KL
2. Or 1
Or
How to define a package? How to access, import a package? Explain
5 K3
with examples.
Write a program for user defined exceptions that check the internal and
external marks. If the internal marks are greater than 40 it raises the
exception” internal marks are exceeded”, if the external marks are 5 K3
greater than 60 exceptions are raised and display the message “the
4. 2
external marks are exceeded”.
Or
5. Or 2
Describe the ways to create the threads in Java with suitable code.
5 K3
Explain with an example.
Section-C
Attempt all the questions from this section. (10 x 2 = 20 Marks)
Q.No. Questions Mark CO KL
s
Illustrate Constructors and their applications in Java. Describe the types 4+3+3 1 K3
of constructors used in Java. Write a class with the name Student with
attributes roll_number, name, branch and email.
6. Or
Explain abstract method and abstract class. Write a Java program for 10 1 K3
employee class where salary is an abstract method with full
implementation.
7. Or