HamiIT
Sign inGet started
Home
Theme
ADD CONTENT

Sign in Required

Please sign in to add content

Sign In
ProgramsBCASemester 6Advanced Java Programming2021

BCA Semester 6 – Advanced Java Programming 2021 TU FOHSS Final Exam Questions & Answers

10 Questions•65 Marks•TU FOHSS

Tribhuvan University

Faculty of Humanities & Social Sciences

OFFICE OF THE DEAN

2021

Bachelor in Computer Applications
Course Title: Advanced Java Programming

Semester: Semester 6

Full Marks: 60

Pass Marks: 24

Time: 3 hours

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

Group B

Attempt any SIX question.

2

Why do we need a top-level container like JFrame to write Java programs with GUI? How can we display two-dimensional objects in Java?

3

Explain JTextField and JTextArea components of the Java Swing library.

4

How do you execute SQL statements using JDBC? Explain with an example.

5

Compare result set with row set. Explain a prepared statement with an example.

6

How do you set and get Cookie in Servlet? Explain using a suitable Java program.

7

Explain different scripting elements of JSP with examples.

8

Write short notes on (Any Two):

a) Java web frameworks

b) CORBA

c) Bean bound property

Group C

Attempt any TWO questions

9

Write a GUI application to find the sum and difference of two integer numbers. Use two text fields for input and a third text field for output. Your program should display the sum if the user presses the mouse and the difference if the user releases the mouse.

10

What is a bean design pattern? Explain simple, Boolean, and indexed property design patterns with suitable examples in detail.

11

Define RMI. What is stub and parameter marshalling? Write a client/server application using RMI to find the product of two numbers.

Showing 10 questions

*** END OF QUESTION PAPER ***

Exam Years

Sample Questions

Why do we need a top-level container like JFrame to write Java programs with GUI? How can we display two-dimensional objects in Java?

Marks: 5Chapter: Unit 1: GUI Programming (12Hrs)

1. Client–Server Software Model Definition The Client–Server software model is a distributed computing model in which: - A client requests services or resources, and - A server provides those servi

Explain JTextField and JTextArea components of the Java Swing library.

Marks: 5Chapter: Unit 1: GUI Programming (12Hrs)

1. JTextField Definition JTextField is a Swing component used to accept and display a single line of text from the user. Key Features - Allows single-line text input. - Commonly used for usernames,

How do you execute SQL statements using JDBC? Explain with an example.

Marks: 5Chapter: Unit 2: Database Programming (7Hrs)

Executing SQL Statements Using JDBC Definition JDBC (Java Database Connectivity) is an API that allows Java programs to connect to a database and execute SQL statements such as SELECT, INSERT, UPDATE

Compare result set with row set. Explain a prepared statement with an example.

Marks: 5Chapter: Unit 2: Database Programming (7Hrs)

1. Difference Between ResultSet and RowSet Definition - ResultSet: An object that holds data retrieved from a database after executing a SQL SELECT query. - RowSet: A JavaBean component that represen

How do you set and get Cookie in Servlet? Explain using a suitable Java program.

Marks: 5Chapter: Unit 4: Servlets and JSP (14Hrs)

Setting and Getting Cookies in Servlet Definition A cookie is a small piece of data sent from a server to a client browser and stored on the client-side. Cookies are used to maintain state informat

And more questions available on this page.

About Advanced Java Programming Past Questions

This page contains the complete 2021 TU FOHSS Final examination paper for Advanced Java Programming, part of the BCA Semester 6 curriculum. All questions are from official Tribhuvan University (TU) exam papers.

How to Use This Resource

  • Practice each question thoroughly before checking the answer
  • Use the answers as reference to understand the expected format
  • Time yourself to simulate exam conditions
  • Review chapter concepts if you struggle with any question
  • Link to specific questions using #q1, #q2, etc. in the URL

Related Resources

← Back to Advanced Java Programming Chapters

Advanced Java Programming 2021 TU FOHSS Final past questions with answers for BCA students in Nepal. Prepare for Tribhuvan University (TU) exams with our comprehensive question bank and model answers.

H
Hami IT

Empowering IT students with quality education resources and comprehensive exam preparation materials.

Programs

  • Flutter
  • Java
  • DevOps

Company

  • About Us
  • Contact
  • Terms of Service
  • Privacy Policy

Contact

  • 📧contact@hamiit.com
  • 📞+977 9813706443
  • 📍Kathmandu, Nepal

Community

  • Join Discord
  • Report a bug
  • Request feature

© 2026 Hami IT. All rights reserved.