• Post Reply Bookmark Topic Watch Topic
  • New Topic

Context

 
Mukesh Jaswani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many types of context are there?
 
Ankit Garg
Sheriff
Posts: 9597
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mukesh, can you explain your question a bit clearly. There's a ServletContext class which represents the context in which a web application runs. What other contexts are you expecting??
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65680
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The term context can be applied to many things.
 
Mukesh Jaswani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In one Java/J2EE interview,I have been asked how many types of context are there?...
I know Servlate Context (application context), but i don't knwo how to respond this
 
Ankit Garg
Sheriff
Posts: 9597
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is only one context if you consider the word in a class name. There used to be a SessionContext which is now deprecated. So the simple answer to the question would be "there's one context, that's servlet context". To be frank the question doesn't make much sense to me. On first glance it looked to me about attribute scopes (which are context, session, request and page (only JSPs))...
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!