File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes What are the difference between session.invalidate() and session.invalidate( , ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "What are the difference between session.invalidate() and session.invalidate( , )" Watch "What are the difference between session.invalidate() and session.invalidate( , )" New topic
Author

What are the difference between session.invalidate() and session.invalidate( , )

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
What are the difference between session.invalidate() and session.invalidate( , )
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
What do you mean by session.invalidate( , ) ?


JDBCSupport - An easy to use, light-weight JDBC framework -
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
Sebastian Janisch wrote:What do you mean by session.invalidate( , ) ?


I am not clear about the question,but the question posted to me in an interview.can you make valid guess and give me solution?
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
If session is of type HttpSession, then there is only one invalidate method which takes no arguments - I mean as far as I know :-)
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
Well, there is a difference. One will compile, the other will not ;-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What are the difference between session.invalidate() and session.invalidate( , )