• Post Reply Bookmark Topic Watch Topic
  • New Topic

Log  RSS feed

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An exception caught in your servlet can be logged how?
1)logger(message, throwable.getMessage())
2) logger(message, throwable)
3) log(message, throwable) ------>
4) log(message, throwable.getMessage())

i think the ans is 3)

is it in exam ?
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nop!
 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But i have seen this in mock exams from javaranch and JDiscuss. ??
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wait, wait. Was it JavaRanch or JDiscuss? It's not both.
 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The questions on this topic is in both javaranch mock exams and Jdiscuss mock exams...
But the real question is "Is this topic on exam?"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!