Originally posted by raja ram:
1.A session attribute can store either a class or primitive type ?
Actually,you can store any kind of object in session not premitive.
if you use jdk 1.5 or higher version then it automatically unbox the premitive to object
2.which of the following will set the Content type to Image/GIF
My answer is both but answer given is setContentType() why is it so?
Hmmm.... i think you are right