Sie sind auf Seite 1von 1

S.J.C.

INSTITUTE OF TECHNOLOGY
Department of Computer Science & Engineering
Tutorial-III

Sub &Subcode :-Advanced Java & J2EE [17CS553/15 CS553] Date: 11/11/2019
Section:-5th ‘A’ &‘B’CSE

1) Explain the following methods, with its general form and example:
i) values() and valueOf()
ii) ordinal() and compareTo()
2) With an example, explain how Autoboxing/unboxing occurs when an argument is
passed/returned by a method. Also illustrate how autoboxing occurs in expressions.
3) With an example, explain the steps involved in obtaining annotations at run time by use
of reflection.
4) Explain the following collection classes , with exapmples:
(i) ArrayList and LinkedList
(ii) HashSet and LinkedHashSet
(iii) TreeSet
(iv) ArrayDeque

5) What do you mean by map? Explain the following map interfaces. (with their methods)
i)Map interface (ii) Sorted map interface (iii) Navigable map interface (iv)Map.Entry
6) Explain the following map classes with examples and constructors.
(i) HashMap class (ii) TreeMap class (iii) LinkedHashMap class (iv) EnumMap class
(v) IndentityHashMap class
7) What are comparators? Give its methods. Explain the same with examples.
8) Give the use of Generic collections.
9) Explain the several methods used for comparing strings or substrings with in strings.
10) Define String buffer. Explain its constructors and methods.
11) Define servlets. What are the advantages of using Java servlets over CGI? Also illustrate
the life cycle of a servlet.
12) Discuss the core interfaces and classes of javax.servlet & javax.servlet.http
13) With a suitable example, describe how to handle HTTP request and responses.
14) What are cookies? Discuss with an example how to create and use cookies using servlets.
15) What is the need of sessions? Illustrate with an example how to use session state.
16) Define JSP. Give the three methods that are called automatically when JSP is requested
and terminated. Also explain the different types of JSP tags.
17) What are JDBC packages? Explain JDBC process with code snippets.
18) Explain prepared & callable Statement Object with suitable example code.
19) Discuss Scrollable ResultSet with an example code. What are the six methods of
ResultSetobject.
20) Explain how updating,deleting and inserting a new row are carried out in a ResultSet.

Signature of faculty Signature of Reviewer

Das könnte Ihnen auch gefallen