2nd Ia QB Java

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

JAIN COLLEGE OF ENGINEERING, BELGAUM

Department of Master of Computer Applications


Third semester 2nd Internal Question Bank

Sub: Programming with Java

Subject Code: 10MCA33

1. Explain how superclass constructors are called using super. 2. Explain abstract and final keyword with example program. 3. Explain Interfaces with example program[interface declares push and pop functions of stack] 4. What is dynamic method dispatch? Demonstrate with the help of example. 5. Define package. Explain the access protection for class members. 6. What is an exception? How does java handle exception? 7. List some of the most common types of exception that might occur in java. 8. Briefly explain user generated exception using throws and throw. Show through program which uses toString function. 9. Define multithread. Distinguish between the multiprocessing and multithreading. 10. What is synchronization? Explain how interthread communication can be achieved in multithreading. 11. What is serialization? Explain any four methods defined by object output stream. 12. Mention any five byte stream classes and write their meaning. 13. Write a java program to demonstrate Exception Handling (using nested try catch and finally). 14. Write a java program using synchronized threads, which demonstrates producer consumer concept. 15. Write a java program to demonstrate Inheritance.

Faculty Name: Megha S. Kulkarni

You might also like