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. What are java Buzzwords? Write a java program to find simple interest. Use command line argument to take input.

3. What is recursive function? Write a java program using recursive and iterative method to find nthn^{th}nth Fibonacci number.

4. What is jagged array? Given an array, write a java program to right rotate it by k elements. Let elements be 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. If k=3, after right rotation it becomes 8, 9, 10, 1, 2, 3, 4, 5, 6, 7.

5. What is final keyword? How will you implement multiple inheritance using interface? Explain with program.

6. Write a simple java program that reads data from one file and writes data to another file using Character stream class.

7. What is autoboxing and unboxing in java? Explain difference between HashMap and HashTable?

8. What is menu? Write a program to create a menu named "File" with menu items "New", "Save", and "Exit".

Group C

9. What are keywords used in Exception handling in java? Write java program that will read balance and withdrawal amount from keyboard and display remaining balance on screen if balance is greater than withdraw otherwise throw an Application Exception with appropriate message.

10. What is MVC design pattern? Write a java program using swing component to find largest and smallest number among three number. Use text fields for inputs and output. Your program should display the result when user presses a button.

11. What is difference between executeUpdate() and executeQuery() method? Write a java program to connect database Bank and insert 5 customer record (Account_no, Name, Address, Balance) in Customer table and Display the customer record whose balance is greater than 5000.