You are on page 1of 2

StudentExamNo,

GANPATUNIVERSITY
Technology
B. Tech.Semester:V ComputerEngineering/Information
-
CBCSRegularExaminationNovember December2014
2CE505/2IT505:AdvancedJava

otalMarks:7o

n
Time:3lrours
Instruction: l. Attemptall questions.
2. Figuresto the right indicatefull marks.
3. Eachsectionshouldbewrittenin a separate answerbook.

.i
SECTION - I

ac
Que.l tAl archiiecture
Whatis I}EE? Explainenterprise and its types. 16l
tBl ExplainJDBCdrivertypeswith advantages anddisadvantages. t6l
OR
Que.l tAl Explainapplication process
deployment in detail. 16l
lBl Explainthe useof the PreparedStatement objectsof the
and Callablestatement 16l

Que.2 tAl

. applet.
et.
JDBCwith an appropriate

The dimensions
with a magentacolor.
example.

How appletsdiffer fi'omapplications?Writean appletthatsetsthe background


colorto cyananddrawsa circleof radius50 pixelscentered
should
of theapplet be 120*120
in themiddleof the
pixels. Fill the circle
I5l
ibn
lBl ExplainMVC in JavaSwing,Describe pluggablelook andfeel featureof Java t6l
Swing.
OR
Que.2 IAI Developan appletthatreceives threenumericvaluesas parametersfrom HTML t5l
Write
of thethreeon the screen.
file andthendisplaysthe largest HTML file for
thesame.
lBl Whatis LayoutManagerin JavaSwing?ExplainGridLayoutand FlowLayout 16l
nfl

with anexample

Que.3 tA] How to irnplementan Eventhandlerin Swing?Write a Swingprogramto t6l


implernent
followingJFrame whichhasa Jbuttonanda JLabel.JLabeldisplays
JLabel
thenumberof timesthe buttonis clicked.Whenuserclickson JbLrtton,
shouldbeuodated.
u.i

a,
; I'rna $witrfibrfionl i Nulltl,er0l bltlt0nclicks:3
; : j

lBl Writea JavaProgranrto insert,update, detailslil<e


deleteand selectstudent's 16]
Roll_No,Name,Address, Age,Ernail_ldfrorn StLrdenttableusingJDBC.LJse
gn

Createstaterlentfor seiect clLlery anci Prepare cistatetnenifor insei'i


qLrery.(Assume
appropriateconditionfbr trpdateanddeleteqLtery)

P a g eI o f 2

tS
*qds

SECTION_ II
include0 of
Que.4 tAI What is servlet collaboration?Explain forward0 and
with anappropriate
RequestDispatcher example.

IB] Whatis JSP?Explainlife cycleof JSP.


OR
Que.4tAl Whatare JSPdirectives?Explain typesof directiveswith example'
different
Whatis EJB?How is it diflerentfromJavabeans? Briefly explaindifferenttypes
tBI

n
beans.
ofenterprise

Que.5tAI ConsiderBooktablewith fieldsBookld,BookName,AuthorName,Publication,

.i
and Editionin database. Write a programusingJSPandJDBC for searchbook
functionality.Design one page "indexjsp" containingtextbox (for entering
AuthorNarne) and a subnii button.When userclicks on button,he shouldbe

ac
'osearchjsp"
wheresearchresultfrom database(list of books)is
redirectedto
displayed.
IBI Describe Cookies and URL Rewriting techniqueswith advantagesand t6l
disadvantages. Createan HTML file "AddCookies'htlnl" which containsfour
text boxes.Whenuserentersthe valuesin thesetext boxes and pressthe submit
button,the valueswill be sentto "AddCookiesjava"servletand get savedin
cookies.

Que.5 tAl Writea servlet program


et.
to
customerid, customer_name,
tBl Whatis JavaBean?Describe
StudentBean
insert

classwith Student
and
OR
selectCustomerdetailsusingJDBClike
address, emailfrom Custotner
and
theneedandcharacteristics
table'
of JavaBean.Design
lastname
detailslike firstname, andage' Set
a
the
tsl
l6l
'i
ibn
propcrliesof StudentBean using <jsp:setProperty> 1aU. Display the Strrdent
detailsin JSPpageusing <jsp:getProperty> tag.

check
calleclltemswhich containstwo nrcthodsequalQ(to
Que,6 IAI Createan intcrfaL:e t3l
whethertwo numbet's areequalor not) and display$(todisplaytwo nurnbers)'
Createa classClientthatirnplementsthe Iternsinterface.Clienthastwo instance
variublesa, b of typeintegerandconstructorto initializethem.Createan object
nfl

of Clientclassandtestthemethods.
tBl ExplainEJBarchitecture. t3l
tcl Whatis JSTL?Explainanytwo tagsof JSTLcoretaglibrary' t3l
tDl whereonecanusegetParameter$
Statethescenarios and
, getParameterNarnesQ t3l
getPameterValues0.
u.i

ENDOF PAPER
gn

Page2 of 2

l6

You might also like