Advanced Java-Question Bank
Advanced Java-Question Bank
DEPARTMENT OF
IVth Semester - B.Tech
Course : MVJ22IS42 - Advanced Java
2. What will happen if two threads access the same Hashtable simultaneously?
B. One thread will wait while the other completes its operation. CO1 (1.00)
C. Both threads will execute simultaneously without any issues.
A. ArrayList
D. LinkedList
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
A. O(N)
D. O(1)
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
A. HashSet
D. LinkedList
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
1 of 19
6. What is the expected output of the following program?
list.add(5);
System.out.println(list);
C. Compilation Error
D. UnsupportedOperationException
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
7. Which Java collection class provides constant-time performance for basic operations like add,
A. LinkedList
CO1 (1.00)
B. HashSet
C. TreeMap
D. PriorityQueue
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
8. Which collection class allows the retrieval of elements in FIFO (First In, First Out) order
in Java?
A. HashSet
CO1 (1.00)
B. LinkedHashMap
C. ArrayDeque
D. PriorityQueue
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
D. O(n log n)
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
2 of 19
10. Consider the following code snippet:
map.put("A", 20);
map.put("C", 15);
map.put("B", 25);
CO1 (1.00)
System.out.println(map);
11. Which of the following statements is true regarding the Java Collection Framework?
A. HashMap allows duplicate keys.
13. Differentiate between equals() and compareTo() with respect to string comparison
CO2 (2.00)
14. Demonstrate a program to create a set of entries,display the elements and update it by adding an
balance to the following data
John Doe , 3433.34
15. Explain Vector class with an example using Enumeration interface to display the objects
CO1 (10.00)
3 of 19
16. Demonstrate the legacy interfaces and classes used in Java Collections Framework with
CO1 (10.00)
appropriate example
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
17. Illustrate Array class and its methods used in Java Collections Framework with an example.
CO1 (10.00)
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
18. Illustrate the various Map classes used in Java Collections Framework with appropriate
example. CO1 (10.00)
19. Illustrate the various Map interfaces and its methods used in Java Collections Framework
CO1 (10.00)
20. Explain how collections can be accessed via an Iterator interface with an example
CO1 (10.00)
23. Create a java program to create an ArrayList of objects of type string.Add any 5 strings,display
size & contents of list. Remove any 2 strings & display size and contents. CO1 (10.00)
24. Write an example for ArrayList class using Iterator, List Iterator, and for-each loop to display
CO1 (10.00)
elements.
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
25. Illustrate the various collection interfaces and its methods used in Java Collections Framework
CO1 (10.00)
26. Illustrate the various collection classes used in Java Collections Framework with appropriate
CO1 (10.00)
example.
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
28. Analyze the various changes that collection framework underwent recently CO1 (2.00)
( Theory ) ( Evaluate(E) ) ( Medium ) (Ref : Unknown ) ( )
29. Write syntax and example for for-each loop CO1 (2.00)
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
4 of 19
30. Differentiate between HashSet and TreeSet class CO1 (2.00)
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
33. Describe the purpose of Map.Entry interface with an example CO1 (2.00)
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
37. Write a Java program to take a string input from the user and perform the following operations
39. Write a Java program that takes user input for different data types (integer, double, boolean) and
converts each to a string using String.valueOf(). The program should then concatenate all the CO2 (10.00)
converted strings and display the final result.
( Theory ) ( Create(C) ) ( Medium ) (Ref : Unknown ) ( )
40. What is String Buffer in Java? Write a Java program that demonstrates any four constructors of
CO2 (10.00)
String Buffer class.
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
41. Develop a Java program that takes a user-input string, calculates its length using length(),
reverses it using reverse(), removes the first three characters using delete(), and deletes the last CO2 (10.00)
5 of 19
42.
Develop a Java program that takes a string input from the user, removes extra spaces, replaces all CO2 (10.00)
occurrences of 'a' with '@', extracts the first five characters, and appends _Processed.
( Theory ) ( Create(C) ) ( Medium ) (Ref : Unknown ) ( )
43.
B. 255
C. 25 + 5
D. Compilation Error
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
sb.insert(2, "Hello");
System.out.println(sb);
CO2 (1.00)
A. HelloJava
B. JaHellova
C. JavaHello
D. Compilation Error
( MCQ ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
6 of 19
48. What is the initial capacity of a StringBuffer object created using the default constructor?
A. 8
B. 16 CO1 (1.00)
C. 32
D. 64
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
System.out.println(s1 == s2);
CO2 (1.00)
A. true
B. false
C. Compilation Error
D. Runtime Error
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
51. What is the correct way to create a String using a StringBuilder object?
A. String s = new String("StringBuilder");
B. String s = new String(new StringBuilder("Hello")); CO2 (1.00)
C. String s = StringBuilder.toString();
D. String s = new String(StringBuilder.toCharArray());
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
7 of 19
52. What will be the output of the following code?
byte[] arr = {65, 66, 67, 68};
String str = new String(arr);
System.out.println(str);
CO2 (1.00)
A. ABCD
B. 65 66 67 68
C. Error
D. NullPointerException
( MCQ ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
53. Which constructor is used to create a String using a subset of a character array?
A. String(char[] value, int offset, int count)
54. Write an example programs of searching strings using indexOf() and lastIndexOf( ) methods. CO2 (10.00)
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
55. Demostrate How to modify a string using replace() trim(), toLowerCase() toUpperCase()
methods with an example?
CO2 (10.00)
56. a. write a java program to demostrate the data conversion using valueOf() method
b. Develop a java code to compare whether the given two strings are equal or not using equals()
CO2 (10.00)
and compareTo()
59. What is string in Java? Write a Java program that demonstrates any five constructors of String
CO2 (10.00)
class.
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
8 of 19
60. Differentiate between StringBuffer and String class
CO2 (2.00)
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
62. Mention any two-character extraction methods of string class. CO2 (2.00)
( Theory ) ( Remembering(R) ) ( Medium ) (Ref : Unknown ) ( )
class SubStringCons
{
public static void main(String args[])
{
byte ascii[] = {77, 86, 74, 67, 69};
CO2 (2.00)
String s1 = new String(ascii);
System.out.println(s1);
String s2 = new String(ascii, 3, 2);
System.out.println(s2);
}
}
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
A) paintComponent(Graphics g)
B) repaint()
CO3 (1.00)
C) draw(Graphics g)
D) paint(Graphics g)
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
9 of 19
66. How do you create a group of mutually exclusive radio buttons in Swing?
A) To display images
B) To create a multi-line text area CO3 (1.00)
C) To allow users to enter a single line of text
D) To create a password field
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
69. How can you make a Swing button respond to user clicks?
A) By adding a KeyListener
B) By overriding the paint() method CO3 (1.00)
C) By adding an ActionListener
70. What is the default layout manager for a JFrame's content pane?
A) FlowLayout
B) BorderLayout CO3 (1.00)
C) GridLayout
D) BoxLayout
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
A) JLabel
B) JTextField CO3 (1.00)
C) JToggleButton
D) JDialog
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
10 of 19
72. Which package contains the core Swing classes?
A) java.swing
B) javax.swing CO3 (1.00)
C) java.awt.swing
D) swing.javax
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
A) JFrame
B) JDialog CO3 (1.00)
C) JPanel
D) JApplet
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
74. What design pattern does Swing use for separating UI components?
A) Singleton Pattern
B) Factory Pattern CO3 (1.00)
C) Model-View-Controller (MVC) Pattern
D) Observer Pattern
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
A) To replace JavaScript
77. Construct a Java program that implements Key Events, explaining how key presses trigger
CO3 (10.00)
different actions.
( Theory ) ( Create(C) ) ( Medium ) (Ref : Unknown ) ( )
78. Develop a Java program to handle Mouse Events, explain its working, and demonstrate how it
CO3 (10.00)
responds to different mouse actions.
( Theory ) ( Create(C) ) ( Medium ) (Ref : Unknown ) ( )
79. Design a Java GUI application using Swing that includes JLabel, JTextField, JButton, and event
CO3 (10.00)
handling. Explain the implementation.
( Theory ) ( Create(C) ) ( Medium ) (Ref : Unknown ) ( )
11 of 19
80. Review the life cycle of an applet , explaining each stage with a real-time example and code. CO3 (10.00)
( Theory ) ( Evaluate(E) ) ( Medium ) (Ref : Unknown ) ( )
81. Critique the Swing Hierarchy, discussing its advantages and limitations in Java GUI
CO3 (10.00)
development.
( Theory ) ( Evaluate(E) ) ( Medium ) (Ref : Unknown ) ( )
82. Assess the Delegation Event Model in Java event handling and justify its usage in GUI
CO3 (10.00)
applications with an example.
( Theory ) ( Evaluate(E) ) ( Medium ) (Ref : Unknown ) ( )
83. Investigate the difference between JRadioButton and JCheckBox with appropriate examples and
CO3 (10.00)
use cases.
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
84. Examine the MVC architecture in Java GUI and explain its significance with a practical
CO3 (10.00)
example.
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
85. Compare AWT and Swing in detail based on their architecture, event handling, and component
CO3 (10.00)
behavior.
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
86. Analyze how Swing is built on AWT and differentiate its advantages over AWT with examples. CO3 (10.00)
( Theory ) ( Analyzing(A) ) ( Easy ) (Ref : Unknown ) ( )
87. Compare AWT (Abstract Window Toolkit) and Swing in Java. CO3 (2.00)
( Theory ) ( Evaluate(E) ) ( Medium ) (Ref : Unknown ) ( )
88. Differentiate between a Window and a Frame in Java GUI programming. CO3 (2.00)
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
91. How does a radio button in Java differ from a checkbox? CO3 (2.00)
( Theory ) ( Analyzing(A) ) ( Easy ) (Ref : Unknown ) ( )
93. Why does a Java applet not contain a main() method? CO3 (2.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
94. Create a Java applet with dimensions 300 × 200 that displays "Hello" at the center. CO3 (2.00)
( Theory ) ( Create(C) ) ( Medium ) (Ref : Unknown ) ( )
95. Explain in detail about methods of string length ,special string operations , string literals ,string
concatenation, string concatenation with other data types. CO2 (10.00)
12 of 19
96. Which of the following is used to store user-specific data in a JSP page across
multiple requests?
A) session
B) application CO4 (1.00)
C) page
D) request
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
A) response
B) request CO4 (1.00)
C) session
D) application
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
A) JSP is used for logic, and Servlets are used for presentation
B) Servlets generate dynamic content, while JSP only displays static content CO4 (1.00)
C) JSP is mainly for the presentation layer, while Servlets handle business logic
D) There is no difference
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
99. Which JSP tag is used to include another file in a JSP page?
A) <jsp:import>
B) <jsp:include> CO4 (1.00)
C) <jsp:forward>
D) <jsp:load>
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
100. Which HTTP request method is used to send data in the request body?
A) GET
B) POST CO4 (1.00)
C) HEAD
D) DELETE
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
A) request.getParameter("name")
13 of 19
102. Which package provides classes and interfaces for handling HTTP-specific functionality in
Servlets?
A) java.http
B) javax.servlet.http CO4 (1.00)
C) jakarta.servlet.http
D) org.apache.http
103. Which web server is commonly used for developing and deploying Java Servlets?
A) Apache Tomcat
B) Nginx CO4 (1.00)
C) IIS
D) XAMPP
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
106. Write a Servlet program to accept a user's name and age and display them on a web page. CO4 (10.00)
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
107. Develop a web application that handles both HTTP GET and POST requests using Servlets.
CO4 (10.00)
Provide the necessary code.
( Theory ) ( Create(C) ) ( Medium ) (Ref : Unknown ) ( )
108. Write a Servlet program to accept two parameters from a web page, and also write an HTML
CO4 (10.00)
script to create the input page for the Servlet program.
( Theory ) ( Create(C) ) ( Medium ) (Ref : Unknown ) ( )
109. Review the session management techniques in JSP and Servlets and recommend the best
CO4 (10.00)
approach for maintaining user data.
( Theory ) ( Evaluate(E) ) ( Medium ) (Ref : Unknown ) ( )
14 of 19
110. Assess the importance of JSP over Servlets in web development and justify when to use each
CO4 (10.00)
technology.
( Theory ) ( Evaluate(E) ) ( Medium ) (Ref : Unknown ) ( )
111. Examine the key differences between GET and POST requests in Servlets and explain their
CO4 (10.00)
usage with code.
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
112. Analyze how cookies and session tracking work in JSP and Servlets , explaining their differences
CO4 (10.00)
with examples.
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
113. Develop a Servlet program that illustrates how to use cookies. CO4 (10.00)
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
114. Write a Servlet program to display "Welcome to MVJCE" on a web page. CO4 (10.00)
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
115. Write a Servlet program that demonstrates how to use session tracking with example CO4 (10.00)
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
116. Write a JSP program to create and read a cookie. Explain the process. CO4 (10.00)
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
117. Explain the difference between Servlets and CGI programs in terms of performance,
CO4 (10.00)
architecture, and execution.
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
118. Explain the life cycle of a Servlet with an example. CO4 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
119. Explain how cookies are handled in JSP and Servlets, with an example. CO4 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
120. List and explain the core classes of the javax.servlet package. CO4 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
121. Describe the core interfaces provided in the javax.servlet.http package. CO4 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
122. List and explain the various JSP tags with examples. CO4 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
123. What is a session tracking Explain how to create a session using JSP. CO4 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
124. Explain JSP scripting elements, tag and directive tags, with suitable examples. CO4 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
125. Explain JSP and its advantages. Also, describe the life cycle of JSP with an example CO4 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
126. Analyze the difference between Cookies and HttpSession in Java web development. CO4 (2.00)
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
127. Write a JSP program to print the first 10 even and 10 odd numbers. CO4 (2.00)
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
128. What is the difference between GenericServlet and HttpServlet? CO4 (2.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
129. What is Session Tracking? Explain its significance in web applications. CO4 (2.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
15 of 19
130. Define a Cookie and explain any two methods in the Cookie class CO4 (2.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
131. What is the difference between the GET and POST methods in HTTP? CO4 (2.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
133. List any four JSP implicit objects and explain their purpose. CO4 (2.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
134. What is a servlet? Explain its role in Java-based web applications CO3 (2.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
135. What is the HttpServlet class? Explain its purpose in Java web development. CO4 (2.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
Module 5
Submodule 1
Topic 1
137. What type of JDBC exception is thrown when a database access error occurs?
A) SQLException
B) DatabaseException CO5 (1.00)
C) IOException
D) QueryException
( MCQ ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
138. Which of the following JDBC interfaces provides information about the database,
such as table structure and supported SQL features?
A) DatabaseMetaData
B) ResultSetMetaData CO5 (1.00)
C) Connection
D) Statement
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
16 of 19
140. How can you execute a parameterized SQL query in JDBC?
A) Using Statement
B) Using PreparedStatement CO5 (1.00)
C) Using CallableStatement
D) Using ResultSet
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
141. Which ResultSet method is used to move the cursor to the next row in the result set?
A) next()
B) moveNext() CO5 (1.00)
C) fetchNextRow()
D) advanceRow()
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
A) DriverManager.getConnection()
B) Connection.open() CO5 (1.00)
C) JDBC.connectDatabase()
D) Statement.createConnection()
( MCQ ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
145. Which of the following JDBC driver types translates JDBC calls into ODBC calls?
A) Type 1
B) Type 2 CO5 (1.00)
C) Type 3
D) Type 4
( MCQ ) ( Remembering(R) ) ( Medium ) (Ref : Unknown ) ( )
17 of 19
146. Which package contains the core JDBC classes and interfaces?
A) java.sql
B) javax.jdbc CO5 (1.00)
C) java.jdbc
D) javax.sql
( MCQ ) ( Remembering(R) ) ( Medium ) (Ref : Unknown ) ( )
147. What is batch processing in JDBC? Explain its advantages and demonstrate how to use it with
CO5 (10.00)
an example.
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
149. Write a Java program to insert, update, delete, and retrieve records from a database using JDBC. CO5 (10.00)
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
150. Compare connection pooling and normal database connections in terms of performance and
CO5 (10.00)
resource management.
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
151. Examine the advantages and disadvantages of different JDBC drivers and explain which one is
CO5 (10.00)
best for web applications.
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
152. Develop a web-based employee management system using JSP, Servlets, and JDBC to perform
CO5 (10.00)
CRUD operations.
( Theory ) ( Create(C) ) ( Medium ) (Ref : Unknown ) ( )
153. Design an Employee Database System that stores employee details (empid, empname, empcity,
CO5 (10.00)
empsalary) and implement CRUD operations using JDBC
( Theory ) ( Analyzing(A) ) ( Medium ) (Ref : Unknown ) ( )
154. Write a Java program to create and retrieve a cookie with the cookie name “EMPID” and value
CO5 (10.00)
“AN2356”.
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
155. Develop a Servlet program to accept a username from the client and display a greeting message:
“Hello UserName” CO5 (10.00)
“How Are You?”
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
156. Write a Java program to establish a database connection using a Type-4 JDBC driver and
CO5 (10.00)
retrieve data from a table.
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
157. Write a Java program to establish a connection between a Java application and a database using
CO5 (10.00)
the JDBC-ODBC Bridge .
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
158. What are Database Drivers? Discuss the different types of JDBC drivers with a neat diagram. CO5 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
18 of 19
159. Explain the different steps involved in JDBC connectivity with appropriate code snippets. CO5 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
160. Describe the following JDBC objects and their roles in database connectivity with example:
a) Database Connection
b) Statement Objects CO5 (10.00)
c) ResultSet
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
161. Explain any two key methods used in Transaction Processing with code snippets. CO5 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
162. Write a short note on Transaction Processing and explain its importance in database management
CO5 (10.00)
and with example
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
163. What is Metadata? Explain different types of Metadata with an example program. CO5 (10.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
164. Write any one syntax to establish a connection to a database using JDBC. CO5 (2.00)
( Theory ) ( Applying(P) ) ( Medium ) (Ref : Unknown ) ( )
165. Differentiate between Type-1 and Type-4 JDBC drivers . CO5 (2.00)
( Theory ) ( Understanding(U) ) ( Medium ) (Ref : Unknown ) ( )
171. Write a short note on the ResultSet object in JDBC. CO5 (2.00)
( Theory ) ( Remembering(R) ) ( Medium ) (Ref : Unknown ) ( )
173. List two key differences between DatabaseMetaData and ResultSetMetaData. CO5 (2.00)
( Theory ) ( Remembering(R) ) ( Medium ) (Ref : Unknown ) ( )
19 of 19