Beruflich Dokumente
Kultur Dokumente
E6CSIIS753
Max. Marks:100 Note: Answer y:!-!rvEfull questions selecring st least TWO questionifrom each part.
q)
o
()
(n
I a.
class Example {
PART
CB
o
6, o E
public static void main (String st lnt a; for (a: 0; a < 3; a++; 1 int b: _1; system.out.println(.. ,, + b)i
l)
!?o
g.-
b:50;
6rr goo
.S c\ ($ rf, :ibo I6) ()tr ..cq)
:h
Es
)
system.out.println(,. ,, + b); )
,YtXTffi*out
b.
of the above code? If you insert another 'int b, outside the for loop, what
(05 Marks) (06 Marks) (02 Marks)
a9
39
o(l)
d.
Java. How
fi;;fb? loop?
nB
o-X Fd 6cs O
5o atE
6;j :l
:\l
method which will throw IllegalAccessException use proper exception handlers and so that exception should be printed. (04 Marks) what are the two types of applet? Explain the skeleton of an applet. Enlist applet tags.
Give the different forms of repaint method.
(06 Marks) (04 Marks)
with example, give two uses of super. write a program which contains one
-.:"
d.
a' b' c'
9E
use of isAlive( ) and join( methods. ) (04 Marks) How synchrorizationcan be achieved for threads in lava?Explain with syntax. (06 Marks) Enlist the different methods in windowlistener. what is the use of windowAdaptor?
d'
o<
*
o
c.l
write a program an applet which will print .,key pressed,, on the status "fi"g you press the key, "key released" on th. .trd;;rrii'*-*rr"r, yo.r r.t.ur. tt e key and when you type the characters it should print 'oHello" u, .o-orainates (50,
-rrj:t#Hi
z
G'
a' How AWT is different from swings? what are b' List four types oftuttons in swings with their the two key features of it? Explain.(08 Marks)
types of buttohs on JApplet' use"suituut" Jlabel to display the action
use.
50) on
Appret.
(07 Marks)
in";k;i.
to'rio* Iow acuons actions on t},e the buttons and use "*r"ri,
(r2 Marks)
write
I of2
O6CS/IS753
PART
B
(08 Marks) (06 Marks) (06 Marks)
b. With proper syntax, explain three types of getConnection method. c. Explain the smo,tlable resutrtset with an example.,
aHow servlets.are better in comparison with CGI? Explain init( ) and service( Enlist core classes and interfaces available in javaxservlet.http
b. o.
). package.
(08 Marks)
(04 Marks)
Write a program using servlet which contains HTML page with various color options. When user choose 8 the particular color, the background of that page should be changed accordingly
(08 Marks)
(05 Marks)
the grade for the subject Java as follows: Above 90: A, 80 - 89': B 70 -79 : C Below 70 = fail. Sham enters,his marks for the subject Java in the interface provided. Write,a JSP program to (08 Marks) accept the marks entered and displayhis grade to the browser.
c;
(07 Marks)
8 a. Explain the various EJB transaction attributes. h Write a code skeleton of a session bean. c. Why message-driven bean is designed? Explain four methods of it.
****,1.
(08 Marks)
(06 Marks) (06 Marks)
of}