| END TERM EXAMINATION | |
| Fourth Semester[BCA] | May-June, 2019 |
| Paper Code: BCA | Subject : Java Programming |
| Time:3 Hours | Maximum Marks:75 |
| Q1 Answer the following in brief. (Any five) (5×5=25) | |
| (a) Discuss all three usages of final keywords. | |
| (b) How can we pass parameters to an applet? | |
| (c) What is the difference between int and integers? | |
| (d) Differentiate between adapter and inner class. | |
| (e) What is Driver Manager class in JDBC? | |
| (f) What is the use of this and super keyword. | |
| (g) What do you mean by Daemon thread? How can you set the priority of a thread? | |
| Q2. a) How is method overloading different from method overriding? Explain with the help of suitable code. (6) | |
| b) What is constructor? Does Java provide default constructor? Does Java provide a default copy constructor? Explain your answer with suitable example. (6.5) | |
| Q3. a). What is inheritance? Explain different types of inheritance in Java with suitable diagram and small segment of codes. (6.5) | |
| b) What are cookies? Are they good or bad? Justify. (6) | |
| Q4. a) Explain the life cycle of thread. Discuss the process of thread synchronization with the help of appropriate code. (6) | |
| b) Explain any 5 String class methods in detail. (6.5) |
|
| Q5. a) Differentiate between checked and unchecked exceptions. Write a program to demonstrate the concept of user defined exceptions. (7.5) | |
| b) Write a program to copy content of one file to another. (5) | |
| Q6. a) What is delegation event model? Write program to explain keyboard event handling. (7.5) | |
| b) Differentiate between Swing and AWT. (5) | |
| Q7. a) Write a program to change background color of applet using three scrollbars representing red, green and blue? (7.5) | |
| b) Write short notes on Inet Address class and its factory methods. (5) | |
| Q8. a) What is JDBC? Explain all the JDBC drivers in detail. (7.5) | |
| b) Write a servlet to display current date and time. (5) | |