Tribhuvan University
Institute of Science and Technology
Bachelor Level/Fourth Year/ Seventh Semester/ Science Full Marks: 60
Computer Science and Information Technology (CSc.403) Pass Marks: 24
(Advanced Java Programming) Time: 3 hours
Candidates are required to give their answers in their own words as far as possible.
The figures in the margin indicate full marks.
Group A
Attempt any two questions. (2x10=20)
- What is exception handling? Discuss the use of each keyword (try, catch, throw, throws and finally) with suitable Java program.
- Write a Java program to find the sum of two numbers using swing components. Use text fields for input and output. Your program displays output if you press any key in keyboard. Use key adapter to handle events.
- Define servlet. Discuss life cycle of servlet. Differebtiate servlet with JSP. Write a simple JSP file to display 'IOST' 20 times.
- Define class. How do you create a class in Java? Differentiate class with interface.
- Write a simple Java program that reads a file named "Test.txt" and displays its contents.
- Why do we need layout management? What is GridBag layout?
- Discuss MVC design pattern with example.
- What are the benefits of using JDBC? What is prepared statement?
- Write Java programs using TCP sockets that communicate with each other in a computer network.
- Define Java Bean. How is it different from other Java programs? What is design pattern?
- How do you handle HTTP request (GET) using servlet?
- What are different layers of RMI architecture? Explain.
-
Write short notes on:
- Servlet API
- RMI vs CORBA
Group B
Attempt any eight questions. (8x5=40)
No comments:
Post a Comment