BIS402
Max. Marks: 100
Module-l M L C
Q.l a. What IS collection framework? Explain the methods define by the 7 L2 COl
collection interface.
b. Implement a java program to demonstrate creating an ArrayList, adding 8 L4 COl
elements, removing elements, sorting elements of Arravl.ist.
c. Demonstrate with an example how accessing a collection Via an Iterator 5 L2 COl
can be done.
OR
Q.2 a. Explain the following map classes: (i) HashMap (ii) TreeMap. 8 L2 COl
b. Explain ArrayList class and explain the following methods: 8 L2 COl
(i) binarysearch (ii) Copy (iii) equals (iv) fill
c. Explain legacy classes. 4 L2 COl
Module - 2
Q.3 a. What is string in Java? Implement a Java program to illustrate the use of 8 L3 CO2
any four constructors of string class.
b. Explain the following stringBuffer methods with an example: 8 L2 CO2
(i) insert (ii) append (iii) replace (iv) substrinz.
c. Differentiate between equals ( ) and = = with respect to string comparison. 4 L2 CO2
OR
Q.4 a. Explain the following string butfer class with examples: 8 L2 CO2
(i) Capacity
(ii) Reverse
(iii) CharAt ()
(iv) deleteCharAt ( ).
b. Implement a java program to remove duplicate characters from a given 8 L3 CO2
string and display the resultant string.
c. How CompareTo ( ) method differs from Compare To Ignoret.ase ( ) 4 L2 CO2
method?
Module -3
Q.5 a. What are differences between swing and A WT? Why Swing components 8 L2 C03
b.
are called light weight component?
Explain the following with suitable code: 12 L2 C03
-
JButton, JLable, JTextField, JCombobox.
OR
Q.6 a. Explain the paint package in swings 6 L2 C03
10f2
BIS402
b. Create a swing application having two buttons named alpha and beta. When 10 L4 C03
either of buttons pressed, it should display "alpha pressed" and "beta
pressed" respectively.
c. Write short note on MVC connection. 4 L2 C03
Module-4
Q.7 a. Explain the Iife cycle of Servlet. 4 L2 C04
b. Describe the core interfaces that are provided In Javax, Servlet, http 8 L2 C04
package.
c. Implement a Servlet program to display the name, USN and total marks by 8 L3 C04
accepting student detail.
OR
Q.8 a. What is JSP? Explain the various types ofJSPtags with examples. 10 L2 C04
b. What are cookies? How cookies are handled in JSP? Write a .ISP program 10 L3 C04
to create and read cookie.
Module- S
Q.9 a. What are database drives? Explain the different JDBC driver types. 6 L2 COS
b. Describe the various steps of JDBC with code snippets. 10 L2 COS
c. Write any two syntax of established a connection to a database. 4 L2 COS
OR
Q.IO 3. Describe the following concepts: 10 L2 COS
(i) Scrollable Resultset
(ii) Callable statement.
(iii) Transaction processing
(iv) Undatable ResuItset.
b. What IS connection pooling? Explain connection pooling with code 6 L2 COS
snippets.
c. Explain different kinds of exceptions in Database. 4 L2 COS
*****
20f2