BCA sixth semester Advance Java Programming 2023 MCQ with answersheet 2019 batch students

4666

BCA sixth semester
Advance Java Programming
2023 MCQ with answersheet
2019 batch students

 

waiting for MCQ

 

i) Which Driver is extremely flexible, since it requires no code installed on the client machine?

Answer: c) Java Protocol

 

ii) What happens if you call deleteRow() on a ResultSet object?

Answer: b) The row you are positioned on is deleted from the ResultSet, but not from the database.

 

iii) What happens if you add a main method to a servlet?

Answer: c) No error, but this method will not get executed automatically.

 

iv) Imagine a situation where four users are interacting with a servlet instance. In this scenario, one of the users invokes the destroy method. What is the impact on the remaining three users?

Answer: b) Only one user that calls destroy() will be terminated. The rest three remain connected with the servlet.

 

v) Include directive is processed at the ______ time and Include action is processed at the ______ time.

Answer: a) translation, run

 

vi) Which statement regarding Java beans is false?

Answer: b) Extends java.io.Serializable class

 

vii) ______ is a container for other components and is used to build customized panels for organizing and arranging components.

Answer: d) Jpanel

 

viii) What are the types of classes that serve as a link between event listeners and event sources?

Answer: a) Event adapters

 

ix) What is the class employed for generating the RMI registry?

Answer: d) LocateRegistry

 

x) Which of the following is not a Swing component?

Answer: b) JLabe (should be “JLabel”)

LEAVE A REPLY

Please enter your comment!
Please enter your name here