Java J2EE Technical  Lead Architect Interview Questions - 4

Question: 16

What is the difference between doGet() and doPost()?

doGet() method is limited with 2k of data to be sent, and doPost() method doesn’t have this limitations.

doPost() method call doesn’t need a long text tail after a servlet name in a request. All parameters are stored in a request itself, not in a request string, and its impossible to guess the data transmitted to a servlet only looking at a request string.

Question: 17

What is value binding expression?

A JavaServer Faces EL expression that refers to a property of a backing bean. A component tag uses this expression to bind the associated components value or the component instance to the bean property. If the component tag refers to the property via its value attribute, then the components value is bound to the property. If the component tag refers to the property via its binding attribute then the component itself is bound to the property.

Question: 18

What is session?

An object used by a servlet to track a user’s interaction with a Web application across multiple HTTP requests.

Question: 19

What are cookies?

Cookies are little (up to 4k) pieces of text stored by the server on a client’s machine. Cookies are a standard way to store persistent session information. Every Web server supports cookies and more than 80% clients keep cookies options turned on in their Internet browsers.

Question: 20

What is Java API for XML based RPC (JAX –RPC)?

An API for building Web Services and clients that use remote procedure calls and XML.

Related Questions