AUTHENTIC EXAMINATION ARCHIVE

2025 java Question Paper

MCA 3rd Semester java • MPC Autonomous College, Takhatpur, Baripada

Course
MCA
Semester
Semester 3
Year
2025
Exam Type
Regular

Original Examination Scans (2)

Verified Pages
2025 java question paper page 1, MPC Autonomous College, Baripada
Page 1: java (2025)
2025 java question paper page 2, MPC Autonomous College, Baripada
Page 2: java (2025)

java (CA-3.1) 2025 Questions

Transcribed questions for java (MCA, Regular 2025) including all sections, choices, marks, equations, and diagrams.

Unit 1 - Object Oriented Concepts & Java Fundamentals

Q.1 [7.5 × 2 = 15 Marks]

(a) Explain the architectural features of Java. Describe JDK, JRE, and JVM with a neat block diagram showing their relationship.

Java Development Kit (JDK) Development Tools: javac, jdb, javadoc, jar Java Runtime Environment (JRE) Core Class Libraries & Supporting Files Java Virtual Machine (JVM) Class Loader Subsystem | Execution Engine (JIT) | Memory
JDK, JRE, and JVM containment architecture hierarchy

(b) Explain the different types of inheritance supported in Java. Why does Java not support multiple inheritance with classes?

OR

(a) What is a constructor in Java? Explain constructor overloading with a suitable code demonstration.

(b) Differentiate between method overloading (compile-time polymorphism) and method overriding (runtime polymorphism) in Java with code examples.

Unit 2 - Packages, Interfaces & Exception Handling

Q.2 [7.5 × 2 = 15 Marks]

(a) Explain package creation, importing, and the four access specifiers (public, protected, default, private) in Java with a table of visibility.

(b) What is an interface? Explain how multiple inheritance is achieved using interfaces with a complete code example.

OR

(a) What is exception handling in Java? Explain the role of try, catch, finally, throw, and throws keywords with program code.

(b) Explain how to create and throw a custom user-defined checked exception in Java with an example.

Unit 3 - Multithreading & Collections Framework

Q.3 [7.5 × 2 = 15 Marks]

(a) What is multithreading? Explain the complete life cycle of a thread in Java with a state transition diagram (New, Runnable, Running, Blocked/Waiting, Terminated).

(b) Explain thread synchronization in Java using synchronized methods and blocks. How do wait(), notify(), and notifyAll() facilitate inter-thread communication?

OR

(a) What is the Java Collections Framework? Compare ArrayList, LinkedList, HashSet, and HashMap in terms of performance and use cases.

(b) What are Generics in Java? Explain generic classes, generic methods, and wildcards (? extends T, ? super T) with examples.

Unit 4 - JDBC & GUI Event Handling

Q.4 [7.5 × 2 = 15 Marks]

(a) Explain JDBC architecture and driver types. Write a complete JDBC program to connect to a MySQL database and retrieve student records.

(b) Differentiate between Statement, PreparedStatement, and CallableStatement in JDBC with suitable code snippets.

OR

(a) Explain the Java delegation event model in AWT/Swing. Write a Java program using JFrame and ActionListener to handle button click events.

(b) Explain Java I/O Byte Streams vs Character Streams. Write a program using FileInputStream and FileOutputStream to copy contents from one file to another.