This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

return null  RSS feed

 
Ranch Hand
Posts: 1280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is the part of my code.

i find that when it comes to this line it returns null.why is that?
 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check THIS link
 
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your piece of code means "Get an Old session "...if its not an old session, it will return null.
 
sam liya
Ranch Hand
Posts: 1280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


if i used above code and after that i check below line is it ok
 
bhaskarvignesh chandra sekaran
Greenhorn
Posts: 17
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya the "if" condition is fine.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!