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: 2081, syllabus wise question

Database Connectivity
1.
What do you mean by SQL escape? Describe about scrollable and updateable result sets. [5]
Event Handling
1.
What is the task of the Listener interface? Write a socket program for a file server that makes a collection of files available for transmission to clients. When a client connects to the server, the server first reads a one-line command from the client. The command string can be of the form 'GET <filename>', where <filename> is a file name. The server checks whether the requested file actually exists. If so, it first sends the word 'OK' as a message to the client. Then it sends the contents of the file and closes the connection. Otherwise, it sends 'ERROR' to the client as message and closes the connection. Assume that there is no sub directories. [10]
2.
Describe any two types of events. [5]
GUI with JavaFX
1.
How does JavaFX hyperlink control format text that functions as button? Illustrate with an example. [5]
Programming in Java
1.
Differentiate between path and class path in Java. When do you prefer anonymous inner class? Consider the following program and answer the given questions. 1) Name the list of class file created after compiling above program 2) Rewrite the above program using for loop [10]
2.
Assume that a text file named 'ONE.TXT' contains a paragraph of text. Write a program to copy the word that starts with vowel from 'ONE.TXT' to another file 'TWO.TXT'. [5]
RMI and CORBA
1.
How do you write an IDL file and generate the stub and skeleton code for CORBA implementation? Explain. [5]
Servlets and Java Server pages
1.
Explain the life cycle of servlets. [5]
2.
Write a program in JSP to display the string taken in one page in another page. [5]
User Interface Components with Swing
1.
What are the tasks of sliders and scroll pane? Explain any four types of layout manager. [10]
2.
Design a simple form that takes name, password, hobbies and gender as input. [5]
3.
How do you insert pop-up menu? Distinguish between GET and POST request. [5]