Cookies are piece of data which are stored at the client’s browser to track information regarding the user usage and habits. Servlets sends cookies to the browser client using the HTTP response headers. When client gets the cookie information it’s stored by the browser in the client’s hard disk. Similarly client returns the cookie information using the HTTP request headers.
Figure: - Cookies in action
Figure: - Cookies code walkthrough
See the following video on Java which describes Batch processing in Hibernate: -
Click for more Java interview questions
Visit for more author’s blog on Java interview questions