Solution to 18CS45 OOC Module 4 Question Bank

 

Solution to 18CS45 OOC Module 4 Solved Question Bank

Here you can find the solution to the 18CS45 OOC Module 4 Question Bank.

1. Define package. What are the steps involved in creating a user-defined package with an example? July 2017, Marks 5.

2. Explain packages in Java with an example. July 2019, Marks 8

3. Describe the various levels of access protection available and their implications. Jan 2018, 2019, Marks  8.

4. Write a Java program to define an interface called Area which contains a  method called Compute() and calculate areas of the rectangle(I*b) and triangle(1/2*b*h) using classes Rectangle and Triangle.  July-18, Marks 8 – V

5. Briefly explain the role of the interface while implementing the multiple inheritances. July 2017, Marks 6 – V

6. What is Thread? Explain two ways of creation of thread. Jan.-18, Marks 5

Solution: 1. By Extending Threads Class and 2. By Implementing Runnable Interface -V

7. Elucidate the two ways of making a class threadable, with examples. July 18, Marks 8

Solution: 1. By Extending Threads Class and 2. By Implementing Runnable Interface -V

8. What is the thread? Explain two ways of creating a thread in JAVA with an example. Jan.-19, Marks 8

Solution: 1. By Extending Threads Class and 2. By Implementing Runnable Interface – V

9. Explain the concepts of multithreading in Java. Explain the two ways of making class threadable with examples. July-19, Marks 10

Solution: 1. Multithreading By Extending Threads Class and 2. Multithreading By Implementing Runnable Interface – V

10. How synchronization can be achieved for threads in Java? Explain with syntax. July-17, Marks 6 – V

11. Discuss briefly Synchronization in Java (2). July 18, Marks 2 – V

12. Write an example Program for implementing static synchronization in Java. July 18, Marks 6

13. What is the need for synchronization? Explain with an example how synchronization is implemented in JAVA. Jan.-19, Marks 8 )- V

14. What is synchronization? When do we use it? Jan.-18, Marks 5 – V

15. Interfaces in Java Difference between Class and Interface Extend Interface Implement Interface -V

16. Explain the role of synchronization with the Bounded buffer problem.

17. What are the differences between suspending and stopping the threads? July-17, Marks 5

18. Define the concept of multithreading in Java and explain the different phases in the life cycle of a thread, with a neat sketch. July-18, Marks 8

The solution to University questions of Semester end Examination

The solution to 18CS45 OOC Module 1 Solved Question Bank

The solution to 18CS45 OOC Module 2 Solved Question Bank

The solution to 18CS45 OOC Module 3 Solved Question Bank

The solution to 18CS45 OOC Module 4 Solved Question Bank

The solution to 18CS45 OOC Module 5 Solved Question Bank

18CS45 Object-Oriented Concepts Notes

Summary:

This article provides the solution to the 18CS45 OOC Module 4 Solved Question Bank. If you like the tutorial share it with your friends. Like the Facebook page for regular updates and YouTube channel for video tutorials.

Welcome to VTUPulse.com


Computer Graphics and Image Processing Mini Projects -> Click Here

Download Final Year Project -> Click Here

This will close in 12 seconds