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

Bachelors In Information Technology

Institute of Science and Technology, TU

Advanced Java Programming (BIT401)

Year Asked: Model, syllabus wise question

Event Handling
1.
What is action command? How it is used in java programs? Explain with example. [5]
GUI with JavaFX
1.
Write down a JavaFx program to create login form. [5]
Java Database Connectivity
1.
Explain steps of JDBC with suitable example. [5]
Network Programming
1.
Write down a java program where client sends a number to server and server calculates its factorial and sends it back to client using TCP. [5]
Programming in Java
1.
Discuss the concept of method overriding. Write a program to create Person class with variables id, and name. Include methods getPerson() and showPerson() in the class. Again, create another class named Employee, which is child of person class. Include member variable salary, and methods getEmployee(), and showEmployee() in the class. Again, create a third class named Typist, which is child of Employee. Include variable typespeed, and methods getTypist(), and showTypist() in the class. Finally, create two objects of Typist class and read and display their details. [10]
2.
What is method overloading? Explain with example. [5]
3.
Write a java program to read content from keyboard and write it to the file named test.txt in D: drive. [5]
4.
Write short notes on a. Container Classes b. Scope of JSP Objects [5]
RMI and CORBA
1.
Discuss the steps of writing RMI programs. [5]
Servlets and Java Server pages
1.
How JSP differs from servlets? Discuss various methods of writing servlet programs with suitable example. [10]
User Interface Components with Swing
1.
Write a java program to create a UI with four labels and three text boxes for Principal, Time, Rate, and Interest. Also put two buttons "Simple Interest" and Reset in the form and handle the event accordingly. [10]
2.
Discuss working of grid layout with example. [5]