0% found this document useful (0 votes)
65 views

Model Paper of Java 5002 by Shailendra Sir

Ok

Uploaded by

deveshjoshi1041
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

Model Paper of Java 5002 by Shailendra Sir

Ok

Uploaded by

deveshjoshi1041
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Model Paper ( BCA-V Semester)

Java Programming and Dynamic Webpage Design-5002 Paper-Second

Time :2 hrs M.M 75


Note: Section A is compulsory. Attempt one questions out of 3 from Section B and
Section C. Section A carry 5 marks for each question and Sec B and Sec. C carry 15
marks for each question.

Section A(any 5) [9*5]


1) Write short notes on static variable and static method.
2) What do you understand by keyword “super”? What is the importance of it? Give
example.
3) What is Garbage collection? What is the difference between garbage collection and
finalize() method.
4) What is the difference between overloading and overriding? Give brief example.
5) What is the difference between doGet() and doPost() method?
6) What is the difference between throw and throws? How can you create user define
exception. Give one example(program) of user define exception.
7) Explain the five methods of String class with the help of example. Distinguish String
class with StringBuffer class.
8) Define Vector in java with Example. Explain wrapper classes in java.
9) Explain life cycle of applet. Give difference between paint() and repaint() method.

Section B [1*15]

10) Define interface. How can you partially implement interface? Define with the help of
example.
Or
Define multithreading. Define life cycle of thread. How can we create a thread using
Thread class or Runnable interface? Give example.
11) Create a class student it is having the following data members and member
methods..---marks1, marks2, marks3 and getdata(), calculate result(), show result().
?
12) CREATE package named complex, to show the sum, product and subtraction of two
complex number, and import it into another java program.

Section C [1*15]

13) Define Command line arguments in java. Create a program that will print the odd
position argument given on the command line arguments i. e. if the arguments is one
two three a b c d then the program would print- one three b d .
Or
Give difference between array and vector . Define Checked and Unchecked
Exception with examples.
14) Explain all JDBC drivers with example. Which JDBC driver is fastest? Which JDBC
driver is deprecated?
Or
Why do we need JSP technology if we already have servlet? Define JSP Session and
JSTL .

Shailendra Dixit Sir


JP & DWD 5002
15) Create an applet in java with buttons named ‘ADD’ and ‘REMOVE’ and a text box
and list box in applet window and create event handling for buttons to add and
remove items from text box to list box.
Or
What is Servlet? Define the types of servlet. Explain the life cycle of Servlet.

Shailendra Dixit Sir


JP & DWD 5002

You might also like