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

Database Connectivity
1.
How prepared statements are different with statement? List the types of JDBC driver. [5]
Network Programming
1.
What is a socket? Write client and server programs in which a server program accepts a radius of a circle from the client program. Computes area, sends the computed area to the client program, and displays it by client program. [5]
Programming in Java
1.
Why do we need to handle the exception? Distinguish error and exception. Write a program to demonstrate your own exception class. [10]
2.
An array is called balanced if it's even numbered elements (a[0], a[2], etc) are even and its odd numbered elements (a[1], a[3], etc) are Odd. Write a function named isBalanced that accepts an array of integers and returns 1 if the array is balanced otherwise it returns 0. [5]
3.
Define the chain of constructor. What is the purpose of private constructor? [5]
4.
Write down the life cycle of thread. Write a program to execute multiple threads in priority base. [5]
5.
When do we use final method and final class? Differentiate between function overloading and function overriding. [5]
6.
Give any two differences between class and bean. Write the steps to create JAR files. [5]
RMI and CORBA
1.
Describe the process to run the RMI application. [5]
Servlets and Java Server pages
1.
Describe the process to deploy the servlet. Write a program to a JSP web form to take input of a student and submit it to second JSP file which may simply print the values of form submission. [10]
2.
Explain the significance of cookies and sessions with suitable example. [5]
User Interface Components with Swing
1.
Design a GUI form using swing with a text field, a text label for displaying the input message 'Input any String', and three buttons with caption CheckPalindrome, Reverse, FindVowels. Write a complete program for above scenario and for checking palindrome in first button, reverse it after clicking second button and extract the vowels from it after clicking third button. [10]
2.
Write short notes on: a. Grid Layout b. Ragged Array [2.5+2.5]