Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


difference between request.getSession(false) or
request.getSession() and request.getSession(true)

Answers were Sorted based on User's Feedback



difference between request.getSession(false) or request.getSession() and request.getSession(true)..

Answer / msreekanth2004

request.getSession(true) or request.getSession():
If session is present it returns that session. Otherwise
it'll create a new session and return that.

request.getSession(false):
If session is present it returns that session. Otherwise it
return "null"

Is This Answer Correct ?    45 Yes 2 No

difference between request.getSession(false) or request.getSession() and request.getSession(true)..

Answer / bhaskar

Your answer 100% right

Is This Answer Correct ?    13 Yes 1 No

Post New Answer

More Servlets Interview Questions

What is servlet configuration?

0 Answers  


What is servlet looping or chaining?

0 Answers  


Why do we have servlet filters?

0 Answers  


What do you understand by mime type?

0 Answers  


How can we perform any action at the time of deploying the project?

0 Answers  


What is the major difference between servlet and applet?

0 Answers  


What do you mean by cgi in servlet?

0 Answers  


How values can be passed from HTML page to servlet?

7 Answers   ABC,


What is the directory structure of web application?

0 Answers  


What is context switching?

6 Answers  


Explain life cycle of a Servlet?

2 Answers  


Write a servlet to upload file on server.

0 Answers  


Categories