Java (2021)
Java (2021)
The figures in the right-hand margin indicate marks. 1) What are context initialization parameters?
Candidates are required to give their answers in their
m) How can you register the driver class for using
own words as far as practicable.
database connectivity in java?
[N}
‘What are the two ways to include the result of iv) Design a java method to find the maximum
another page? Explain them. 2+3 and minimum from an ArrayList of
integers. 2+2+2+4
Explain the MVC framework for JSP
applications with proper diagram. 5 ¢ ) ‘What are the JDBC statements? Explain
them.
What are the steps involved in executing
database queries with java? How the connection ‘What are the differences between execute,
is closed after execution of queries. 4+1 executeQuery, and executeUpdate?
5+5
f) Explain all the JDBCAPI interfaces. 5
Answer any two questions: 10x2=20 (V] How to write comments in JavaScript?
a) i) How canyouimplement a thread-safe JSP How can you create JavaScript functions?
page? What are the advantages and Explain different primitive and non-
Disadvantages of using it? primitive data types available in JavaScript.
ii) How can you prevent the output of your How can you create an object in
JSP or Servlet pages from being cached JavaScript? Give an example. 2+2+4+2
by the browser?