2025 java Question Paper
MCA 3rd Semester java • MPC Autonomous College, Takhatpur, Baripada
- Course
- MCA
- Semester
- Semester 3
- Year
- 2025
- Exam Type
- Regular
MCA 3rd Semester java • MPC Autonomous College, Takhatpur, Baripada
Transcribed questions for java (MCA, Regular 2025) including all sections, choices, marks, equations, and diagrams.
(a) Explain the architectural features of Java. Describe JDK, JRE, and JVM with a neat block diagram showing their relationship.
(b) Explain the different types of inheritance supported in Java. Why does Java not support multiple inheritance with classes?
(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.
(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.
(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.
(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?
(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.
(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.
(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.