Bachelors Level/Fourth Year/Seventh Semester/Science csit/seventh semester/advanced java programming/syllabus wise questions

B.Sc Computer Science and Information Technology

Institute of Science and Technology, TU

Advanced Java Programming (CSC419)

Year Asked: 2076, syllabus wise question

Database Connectivity
1.
What are the benefits of using JDBC? What is prepared statement? [5]
GUI with JavaFX
1.
Discuss MVC design pattern with example. [5]
2.
Define Java Bean. How is it different from other Java programs? What is design pattern? [5]
Network Programming
1.
Write Java programs using TCP sockets that communicate with each other in a computer network. [5]
Programming in Java
1.
What is exception handling? Discuss the use of each keyword (try, catch, throw, throws and finally) with suitable Java program. [10]
2.
Define class. How do you create a class in Java? Differentiate class with interface. [5]
3.
Write a simple Java program that reads a file named 'Test.txt' and displays its contents. [5]
RMI and CORBA
1.
What are different layers of RMI architecture? Explain. [5]
Servlets and Java Server pages
1.
Define servlet. Discuss life cycle of servlet. Differentiate servlet with JSP. Write a simple JSP file to display 'IOST' 20 times. [10]
2.
How do you handle HTTP request (GET) using servlet? [5]
3.
Write short notes on: a. Servlet API b. RMI vs CORBA [2.5+2.5]
User Interface Components with Swing
1.
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. [10]
2.
Why do we need layout management? What is GridBag layout? [5]