Tribhuvan University
Bachelor of Science in Computer Science and Information Technology
Semester 7 · TU Board 2079
Course Title: Advanced Java Programming (CSC409)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks.
Group A
Attempt any two questions.(2 × 10 = 20)
- 1.10
Explain feature of object-oriented programming. Create a class Distance with private variables feet of type integer and inches of type floating point. Use suitable constructor, and methods for adding and comparing two distance objects. [Hint: 1 feet = 12 inches]
- 2.10
Why do we need layout management? Explain any two layout managers with example. Write a simple GUI program that displays "Hello World" in a text field. The program should display output if user clicks a button.
- 3.10
Define JSP. What are the benefits of using JSP? Create a HTML file with two text fields to first name and last name. Create a JSP file that reads data from the HTML form and display full name.
Group B
Attempt any eight questions.(8 × 5 = 40)
- 4.5
What is multithreading? How can you create multithreaded program in Java? Explain.
Answer comingAlso asked in 2078
- 5.5
What is grid layout? Compare grid layout with grid bag layout.
- 6.5
Why do we need event handling? Explain the use of action event with example.
Answer comingAlso asked in Model question
- 7.5
Explain JDBC driver types. What is scrollable result set?
- 8.5
Write Java program that send messages with each other using TCP socket.
- 9.5
What is JavaFX? Compare it with swing. Explain FlowPane layout of JavaFX.
Answer comingAlso asked in 2078
- 10.5
Compare JSP with servlet. What are different implicit objects in JSP?
- 11.5
Write short notes on:
- Final class
- Result set
— The End —