Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

Advance Programming With Java

This document outlines the examination structure for a Bachelor-level course in Advanced Programming with Java at Pokhara University for Spring 2024. It includes various programming questions covering topics such as Java architecture, exception handling, JavaFX, RMI architecture, JDBC, and servlets. Candidates are required to provide answers in their own words and attempt all questions within a 3-hour timeframe.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Advance Programming With Java

This document outlines the examination structure for a Bachelor-level course in Advanced Programming with Java at Pokhara University for Spring 2024. It includes various programming questions covering topics such as Java architecture, exception handling, JavaFX, RMI architecture, JDBC, and servlets. Candidates are required to provide answers in their own words and attempt all questions within a 3-hour timeframe.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

POKHARA UNIVERSIT Y

Level: Bachelor Semester: Spring Year : 2024


Programme: BE Full Marks:100
Course: Advance Programming with Java Pass Marks: 45
Time : 3hrs.
Candidates are required to give their answers in their own words as far
as practicable.
The figures in the margin indicate full marks.
Attempt all the questions.
1. a) Define ClassPath? Write a program with custom exception handler 7
that handle arithmetic exception.
b) Explain the architecture of Java, including the role of the JVM, JRE, 8
and JDK.
OR
Define collection framework in java. Explain the different
components of java collection framework.
2. a) What are the implications in Java when defining a variable, method, 8
and class as final? Explain the various access modifiers in Java and
their significance.
b) Define abstraction. Write Java program that override methods 7
(getUserValue() and displayUserDetail() ). Where getUserValue() is
defined to get user detail(name, address, age) and
displayUserDetail() to display user detail.
3. a) Pros and Cons of JavaFx. Create GUI application with two buttons 8
“RED” and “Green”. When clicking “RED” button change
background of “GREEN” button to red and clicking “GREEN”
button change background of “RED” button to green. Also, console
button clicked message.
b) Define stage and scene in JavaFX. Explain any two JavaFX layout 7
managers.
4. a) Explain RMI architecture. Develop RMI application where client 8
request to identify given number is Odd or Even.
b) Write a TCP client server program, where a client sends an integer 7
value and server responds by sending the squared value of that
integer.

Page 1 of 2
5. a) Differentiate between Statement and PreparedStatement. Consider 8
db_college and tbl_student as database name and table respectively
where a tbl_student has columns name, faculty and batch. Write
Console application with CREATE, READ, UPDATE and DELETE
queries only using Prepared Statement.
b) What is a JDBC driver? Explain the different JDBC drive types and 7
can figuration
OR
Write all steps to connect Java Application with any Database. Insert
student detail (roll,name,address,age) into table “student_tbl”
6. a) Describe the life cycle of a servlet. Explain the use of doGet() and 7
doPost() methods of the Servlet with an example.
b) Create a Servlet application to showcase the concept of session and 8
cookies
7. Write short notes on: (Any two) 2×5
a) Design patterns
b) Over view of ORM
c) RMI vs. CORBA

Page 2 of 2

You might also like