Java ee - Interview Questions and Answers for 'Infosys' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Interview Questions


 2795 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Infosys


   




Java ee - Interview Questions and Answers for 'Infosys' - 3 question(s) found - Order By Newest

 Q1. What is session tracking and how do you track a user session in servlets?Java EE
Admin
info@buggybread.com
Ans. Session tracking is a mechanism that servlets use to maintain state about a series requests from the same user across some period of time. The methods used for session tracking are:

User Authentication - occurs when a web server restricts access to some of its resources to only those clients that log in using a recognized username and password

Hidden form fields - fields are added to an HTML form that are not displayed in the client's browser. When the form containing the fields is submitted, the fields are sent back to the server

URL rewriting - every URL that the user clicks on is dynamically modified or rewritten to include extra information. The extra information can be in the form of extra path information, added parameters or some custom, server-specific URL change.

Cookies - a bit of information that is sent by a web server to a browser and which can later be read back from that browser.

HttpSession- places a limit on the number of sessions that can exist in memory.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     j2ee   servlets   session   session management   web applications   cookies   httpsession   url rewriting   architecture     Infosys


Related Questions

  What are different types of cookies ?
  Please specify in what sequence the objects of following classes will be created ?

Session , SessionFactory, Query , Configuration
  What is a cookie ?
  what is the use of cookie and session ? and What is the difference between them ?
  What is the use of HTTPSession in relation to http protocol ?
  Why using cookie to store session info is a better idea than just using session info in the request ?
  http protocol is by default ... ?
  How many SessionFactory and Session objects are created ?
 What does the following exception means

org.hibernate.LazyInitializationException: could not initialize proxy - no Session


Frequently asked. Among first few questions in the J2EE segment of interview.
  Q2. What is deployment descriptor ?

or

What is the use of deployment descriptor ?
Java EE2016-06-04 22:46:40

Ans. Deployment Descriptor which is usually web.xml is used to specify the classes, resources and configuration of the application and how the web server uses them to serve web requests.This file is usually added to WEB-INF folder and contains following

* Servlet entries and url mapping
* Plugins
* Some info regarding authentication / filters
* Landing Page
* Event Handlers

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     web.xml   servlets  deployment descriptor     The NewBury Corp  Fast Dolphin  uCertify  General Electric  Cognizant (CTS)  Web coop  HCL Technologies  Tara Consultancy (TCS)  Wipro  Infosys  Cognizant (CTS)  Sonatype  IBM  computer science corporation (CSC)  American Express      basic        frequent

Try 1 Question(s) Test


Related Questions

 Which of the following file is called deployment descriptor ?

a. application.xml
b. project.xml
c. web.xml
d. build.xml
  Can we have multiple servlets in a web application and How can we do that ?
 Is there any relationship between Web.xml and Spring.xml ?
 What is the difference between filter and filter-mappings xml tag within deployment descriptor ?


  Q3. What is a cookie ?Java EE
admin
info@buggybread.com
Ans. A cookie is a small piece of text stored on a user's computer by the browser for a specific domain. Commonly used for authentication, storing site preferences, and server session identification.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     cookie   javascript   web application   session management   browser   j2ee     Wayfair  OpenBet  Akamai  Alicen  HCL Technologies  Tata Consultancy (TCS)  Wipro  Infosys  Mindtree  Global Logic  Accenture  Lexis Nexis  Elsevier  Vyom Labs  SVV Geotech      basic        frequent


Related Questions

  What is session tracking and how do you track a user session in servlets?
  What are different types of cookies ?
  what is the use of cookie and session ? and What is the difference between them ?
  Why using cookie to store session info is a better idea than just using session info in the request ?
  http protocol is by default ... ?
 How cookies helps by storing encrypted passwords ?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this

Infosys: Was interviewed for the Chandigarh Unit. Some ... Anonymous

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: