Set - 1

Question 11 :

How can a servlet refresh automatically if some new data has entered the database?

Answer :

You can use a client-side Refresh or Server Push.


Question 12 :

The code in a finally clause will never fail to execute, right?

Answer :

Using System.exit(1); in try block will not allow finally code to execute.


Question 13 :

How many messaging models do JMS provide for and what are they?

Answer :

JMS provide for two messaging models, publish-and-subscribe and point-to-point queuing.


Question 14 :

What information is needed to create a TCP Socket?

Answer :

The Local Systems IP Address and Port Number. And the Remote System's IPAddress and Port Number.


Question 15 :

What Class.forName will do while loading drivers?

Answer :

It is used to create an instance of a driver and register it with the DriverManager. When you have loaded a driver, it is available for making a connection with a DBMS.