Professional Documents
Culture Documents
Java Questions Paper 2015-19
Java Questions Paper 2015-19
UNIT-I
Q3 (a} What is sandbox model? How has it evolved over a period of time to the present
~? •
(b} Explain different types of class loaders in java. What are the differences
and similarities in different types? (6.5)
UKIT-Il
Q5 (a) Explain the concept of dynamic method dispatch. Illustrate it with program.(6.5)
(b) Explain Short Circuit and Short Circuit OR with the help of code fragments.
(6)
Ul(IT-m
UNIT-IV
Q9 What do you mean by driver used in database connectivity. Explain different types
of drivers used in Java Database Connectivity. (12.5)
************
•
I
Unit-ID
Q6. a) Write an application which shows two input text boxes namely input-1 and
input-2 and two buttons with captions + and· - respectively. Use action
event to print the sum and difference of two .inputs on a third textbox on
click of+ and- buttons respectively. (7.5)
b) Explain thread synchronization. · (5)
Q7. a) Explain multithreading with an example. (7.5)
b) Explain different types of layouts in java AWT. (5)
Unit-IV
QB. a) Explain different types of JDBC drivers. Write the steps involved in JDBC
application with an example. - (7.5
b) Write a program to read content of one me and write it in another file. (5)
Q9. a) Draw the Architecture of JDBC-ODBC Bridge and steps for executing of a
JOBC ODBC based Java Program. Write a program in java to represent
'JDBC-ODBC' connectivity by insert a data 'name', 'id' and 'marks' fields in
a table 'student' of database '~tudentDB'. (7.5)
b) What are Java collections? Give some methods of Collection interface. (5)
*****"******
r---i
... -
.. I ( 5,.
,,,_- rorfC. JIOur &,cam Roll No.} .Exam Roll No• ......................
Q4 (a) Create an applet program that accepts marks of live subjects using
<param> tag and display the average of the marks obtained in its
status bar. 161
(b) What is the difference between an application and an applet?_ 131
(c) Why Java is considered as best IangUage for mtemet applicati0ns?\3.5l
Q5 (a) Explain how exception handling is do~• in Java. Write a small java
progralll containin& user define~ '7'ceptt~ns. (6.513
(b} Explain tl,ree c1asses available mJava.util package- l I
{c) What do you understand by garbage eollection in Java? l3l
Q6 {a) Write a Java progralll to read a file usin& byte array. You need to read
fixed size of content each time, read multiple times, till end of the file .(6.Sl
{b) What is the functionality of a File class? l3l
{c) Explain method overloadin& and method overridinl! with suitable
example. (31
Q? {a) What is Event Classes? Explain Adapter and Inner Classes with the
help of example. . . : . 6l~l
5
lb) What is the itllPo,tance of JavascnPt m buildin& web page? ExP\8111
with the help of code. 1- 1
content
\6\
{a) How to control the honzontsl ·and vertical positionin& of \6.5\
QB wi~ a cell? Ex.plain with the help of e,<alllple.
{b) Wnte a Java script code to iIJlplement Countdown '\'iiner.
··········••*
p
t~f''
I
(Please unite your &mm Roll No.J kam .Rott No• ......................
END TERM.EXAMINATION
FlrrH SBMBSTER IB.TECHl DBCWB'&R· 2016
Paper Code; ETIT-303 Subject: Java Programming Web.lfte Design
Time: 3 Hours Maximum llarks: 75
\ Note: Attempt any ftve questfons fnlcludfngQ.Nol which ts compulsory. I
Q1 la) What is the purpose of system class?
lb} What is a nested class? Mention its type.
(c) Why do we need import statement in Java? Explain with an example.
ld) Name and explain the package used in event handling in Java.
(e) Explain the life cycle of Applet. (5x5=25)
Q3 lal Dilierenti.ate between Interfaces and Abstract classes. What is the need of
these concepts in Java? (8.5)
lb) What are the uses of final and super keywords with respect to inheritancc?(4)
What _is event handling in Java? Which classes and interfaces support even
Q4
handling? What is the relationship between an event-listener interface and an
event-adapter class? (12.5)
(a) What is stream in Java? Classify stream in Java. Using buffer stream class,
Q6
{b),..,,e
Jrlte a program to display •Hello World•.
and explain any three AWT components used in Java.
(6.5,
(61
(a) ~at is form? What elements can use to submit a form? When a fonn is
Q7 submitted, where the data is delivered to? (6.5)
(b) Ekplain the terms Jntemet, Intranet and Extranet. (61
(a) D~fine HTML. What are the different categories under which HTML elements
QB fall? (8)
(bl v.\rite a function in java script that validates if the content has the general
syntax of "'1 email- (4.51
(al Wpat are the major tasks in the_ overall website developmen_t process? (6.51
Q9 (b) What is CCS? Why do we ,require it? Show by an appropnate example how
**uuutt
t~c--J 11
/ )~
fPlea.ae IDfite 'IJOUf' &1cam Ron No.J kam RoU No• ......................
Q2
..
(a) Compare Strings and StringBuffer classes with suitable examples. (5)
(b} Write a program in Java to add two complex numbers. -Make use of a
copy constructor in the program. Get the input from command line.(7}
(cl El<plain the functionality of a FILE class, · (3)
II Write a program to create two threads, one thread will print odd numbers
Q3 and second thread will print even numbers between 1 to 20 numberS to
get the output as:
1, 3, 5, 7, ..... and then 2, 4, 6, 8, .....
i.e. ell odd numbers should be printed before the even numberS, · (151
(al What is JDBC? Discuss the general JDBC architecture• What ere
Q4 basic steps to create a JDBC application. (101
(bl What are the different types of JDBC statements? (51
- Q6
(a) What is delegation event model? Write a program to illustrate the
keyboard or mouse even bandfu1g.
(b) Differentiate between swings and AWT controls.
(10)
(5)
(al Write a Java program to copy contents of one file to anothllr file. (81
(bl Differentiate betv,een checked and unchecked exceptions. W?te a
Q7 prograin to create user-defined exception and use the same Ul the
main program- . (7}
(S:it3'=15l
?
L ;Jd l _1 7
(Please write your Exam Roll No.J kam Roll No• ......................
Q2 (a) Describe the various types of exceptions and illustrate how they are
handled. (9)
(b) Define multithreading with an example. (3.5)
I Q3 (a) What is inheritance? How will you call parameterized constructor and
override method from parent class in sub class? (9)
lb) What is an inner class? Give an example for it. (3.5)
(6.25)
Q4 la) List out the steps to connect JDBC with MS-Access. (6.25)
(b) Create and application for online shopping with JDBC.
Explain life cycle of a thread with help of a diagram. How do the wait and
Q5 notify All/notify methods enable cooperation between threads. (12.5)
Given two different array of size M and N in sorted ascending order, write
Q6 a JAVA program to merge them into a single sorted array with the
condition that merged array should be in ascending order. (12.5)
How to declare and initialize a string in JAVA and also explain the
Q7 difference string handling functions with suitable example. (12.5\
(6.25x2=12.5)
11111 Q8 Write short note on any two:
(a) Development of client server application
(b) AWT component
le) Organization of JVM
***********
?
(¾
(~\ c~rJ,,
~,,
ra ·~, (Plecue torfte JJOW' .&,mm Roll No.}
• Q3 Explain any six methods of string class. Is string class immutable? (12.5)
Unit-n
What do you mean by exception? Explain the keywords try catch throw
Q4 throws & finally with the help of a program or programs. ' ' (12.5\
Unit-m
What do you mean by Events, Source and Listeners? What are the
Q7 various events which can occur with a mouse? Write a program to handle
#ii 11111- various mouse events. l12.5l
Unit-IV
Write full form of HTML. Explain the following HTML tags. How are these
Q9 used? Explain by writing HTML code.
(i) <BR> (ii) <A> (iii) <APPLET> (iv) <DD> (v) <PRE> (iv) <FORM>.
l12.5\
***********