Pre-Board examination question paper set for Advanced Java Programming from the year 2025.

Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2026
Bachelor in Computer Applications

Paper detail Value
Course Advanced Java Programming
Code No. CACS354
Semester VIth
Full marks 60
Pass marks 24
Time 3 hours

Candidates are required to answer the questions in their own words as far as possible.

Group B

2. Write a Program to add two Buttons and a Text Field on a JFrame, when first Button is Clicked, a Welcome Message appears in text Field and When Second Button is clicked the Text Filed Becomes Blanks.

3. What is importance of event handling in java swing program? List any 5 event class used in java.

4. What is internal frame? Write a program that displays an internal frame within some parent Frame.

5. Compare result set with row set? Explain prepared statement with example.

6. What is java bean? How is it differing from java class?

7. How JSP is differing from servlet? Write JSP program to display "Ratna Rajyalaxmi Campus" 10 times.

8. Write a RMI program to find factorial and cube of input numbers. Methods findFact() and findCube() should be invoked from some remote machine.

Group C

9. Write a java program to design an interface containing fields Username, Password and two Buttons login and cancel by using grid layout. Add events handling to the button login and Cancel such that clicking in login checks for matching username and password in the Database and opens another window if login is successful and display appropriate message if login is not successful. Clicking in cancel button terminates our program.

10. What is session and cookies? Write a servlet program to find sum of digits of number entered by user through HTML form.

11. What is bean indexed properties. Write a java bean for container like JFrame and control beans like JLabel, JTextField and JButton. Using these Bean class create application to create calculation of Factorial number.