Name………………………….
[Link] ……………………….
Institute of Engineering and Technology University of Calicut
Fourth Semester B. Tech Computer Science & Engineering (2024 Scheme)
Second Series Examination May - 2026
CS24 405 – OBJECT ORIENTED PROGRAMMING USING JAVA
Time: 1 Hour 30 Min. Maximum: 30 marks
Part A - Answer any two questions
(Each question carries 5 marks)
1. Specify the different access specifiers in Java.
2. Explain inner class in java with example.
3. Explain the usage of final keyword in java.
4. Differentiate start() and run() method in multithreaded programming.
(2 x 5 marks = 10 marks)
Part B - Answer all questions.
(Each question carries 10 marks)
5. A) Explain Inheritance in Java. What are the different types of inheritance in java? (5 Marks)
B) Write a java program to implement arithmetic calculator using inheritance. (5 Marks)
Or
6. A) What is an Interface? Mention the rules to create an interface. (5 Marks)
B) Write a java program to implement arithmetic calculator using Interface. (5 Marks)
7. A) Define multithreading. Specify the benefits of multithreaded programming in java. (5 Marks)
B) Write a Java program that implements a multi-threaded program which has three threads. First
thread generates a random integer every 1 second. If the value is even, second thread computes
the square of the number and prints. If the value is odd the third thread will print the value of
cube of the number. (5 Marks)
Or
8. A) Write briefly about Java thread synchronization. (5 Marks)
B) Write a Java program that implements thread synchronization in a multi-threaded environment.
(5 Marks)
(2 x 10 marks = 20 marks)