0% found this document useful (0 votes)
9 views3 pages

Advanced Java Exam Questions and Solutions

This document outlines the examination structure for the Advanced Java course at MVJ College of Engineering, detailing the maximum marks, duration, and course code. It includes various questions divided into three parts, covering topics such as stack classes, JDBC drivers, web application development, and Java collection classes. Additionally, it features multiple-choice questions related to Java concepts and functionalities.

Uploaded by

venkateshguthi59
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

Advanced Java Exam Questions and Solutions

This document outlines the examination structure for the Advanced Java course at MVJ College of Engineering, detailing the maximum marks, duration, and course code. It includes various questions divided into three parts, covering topics such as stack classes, JDBC drivers, web application development, and Java collection classes. Additionally, it features multiple-choice questions related to Java concepts and functionalities.

Uploaded by

venkateshguthi59
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

MVJ College of Engineering, Bangalore

An Autonomous Institute
Affiliated to VTU, Belagavi, Approved by AICTE, New Delhi
Recognized by UGC with 2(f) and 12(B) status, Accredited by NACC and NBA

Department of ISE,CSE

Semester : IV Maximum marks : 50


1 hour 30
Course Title : ADVANCED JAVA Duration :
Minutes
Course Code : MVJ22IS42

[Link]. Marks
PART-A
[Link] stack class with an example
2. Justify why StringBuffer is thread-safe compared to StringBuilder
3. Explain MVC (Model-View-Controller) in Java GUI applications.
4. Define a Cookie and explain any two methods in the Cookie class
5. Differentiate between Type-1 and Type-4 JDBC drivers.
PART-B

[Link] 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
Tom Smith, 123.22
Jane Baker, 1378.00
Tod Hall, 99.22
Ralph Smith, -19.08
Update John Doe account with 1000,Using TreeMap class.
[Link] the following String methods with an example:
i)contains() ii)contentEquals() iii)replaceFirst() iv)replaceAll() v)spilt() methods

PART-C
[Link] a web application that handles both HTTP GET and POST requests using Servlets. Provide the
necessary code.
9. Explain the different steps involved in JDBC connectivity with appropriate code snippets.

[Link] of the following legacy classes is synchronized in Java?


A. ArrayList
B. HashMap
C. Vector
D. LinkedList
2. Which collection class allows the retrieval of elements in FIFO (First In, First Out) order in Java?
A. HashSet
B. LinkedHashMap
C. ArrayDeque

1|3Pages
D. PriorityQueue
3. What is the initial capacity of a StringBuffer object created using the default constructor?
A. 8
B. 16
C. 32
D. 64
4. What is the output of the following code?
int a = 25;
String s = [Link](a);
[Link](s + 5);
A. 30
B. 255
C. 25 + 5
D. Compilation Error
5. What is the default layout manager for a JFrame's content pane?
A) FlowLayout
B) BorderLayout
C) GridLayout
D) BoxLayout
6. In Swing, which of the following is NOT a top-level container?
A) JFrame
B) JDialog
C) JPanel
D) Japplet
7. Which JSP implicit object is used to get request data?
A) response
B) request
C) session
D) application
8. What is the correct method to read form data in a Servlet?
A) [Link]("name")
B) [Link]("name")
C) [Link]("name")
D) [Link]("name")
9. Which ResultSet method is used to move the cursor to the next row in the result set?
A) next()
B) moveNext()
C) fetchNextRow()
D) advanceRow()
10. Which package contains the core JDBC classes and interfaces?
A) [Link]
B) [Link]
C) [Link]
D) [Link]

FACULTY SIGNATURE HOD

2|3Pages
3|3Pages

You might also like