(Please write your Exam Roll No.) Exam Roll No. ………………………….
Institute of Innovation in Technology & Management
RE-INTERNAL EXAMINATION
4th SEMESTER [BCA] May-2024
Paper Code: BCA 202 Subject: Java Programming
Time: 2 hours only Max. Marks: 40
Note: Attempt any four questions including [Link]. 1 which is compulsory. All questions carry equal marks.
Q.1. Explain the following: (2 X 5 =10)
a. List and explain any 4 features of Java.
b. Discuss the significance of access modifiers in Java
c. Differentiate between interface and abstract class in Java.
d. Define Package.
e. What is the significance of the ‘super’ keyword in Java?
Q.2. a. Explain and differentiate the concept of method overloading and method overriding. (5)
b. Define Variables. Explain the scope and lifetime of variables with example. (5)
Q.3. a. What are interfaces? What are their benefits? Give the general form of a class that implements
interfaces. (5)
b. Write a Java class called as SavingAccount with members as AccountNo and Balance. Provide
depositAmount() and withdrawAmount() functions. If user tries to withdraw more money than his
balance, then throw a User Defined Exception. (5)
Q.4. a. Explain the lifecycle of Thread. Write a Program to create Thread. (5)
b. Describe how interfaces in Java enable abstraction and polymorphism, with examples of their
implementation and use. (5)
Q.5. a. Write a program to illustrate checked exception where FileNotFound Exception occurred. (5)
b. Describe the differences between the throw and throws keywords in Java, including their
usage contexts. (5)