Tribhuvan University
Bachelor of Information Technology
Semester 7 · TU Board 2080
Course Title: Advanced Java Programming (BIT401)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
Group A
Attempt any Two questions.(2 × 10 = 20)
- 1.10
Why do we need interface? Define an interface named shape with area ( ) method. Create a class named Rectangle with length and breadth circle with radius that implements shape interface. Now create the object of both classes and display their area.
- 2.10
Write a Java program to create a UI with three labels and three text boxes for First Number, Second Number and Result. Also put Four buttons (Add, Subtract, Multiply, and Divide) in the form and handle the event accordingly.
- 3.10
What are the various tags used in writing JSP programs? How HTML forms can be processed using JSP? Explain with example.
Group B
Attempt any Eight questions(8 × 5 = 40)
- 4.5
Describe the chain of constructor with example.
- 5.5
Write a Java program to create a multi-threaded programs by extending Thread class. Create at least three threads.
- 6.5
What is layout manager? Explain working of flow layout with example.
- 7.5
Describe about exception handlings with example.
- 8.5
How prepared statements differs from statements? Explain use of prepared statements with example.
- 9.5
Discuss the steps of writing JavaFX programs.
- 10.5
Write a socket program using TCP where client sends an integer to server and server response whether it is positive or negative.
- 11.5
How distributed programs can be written in Java? Explain RMI architecture.
- 12.5
Write short notes on a. Final keyword b. Object class
— The End —