Model Paper of Java 5002 by Shailendra Sir
Model Paper of Java 5002 by Shailendra Sir
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 .