• Post Reply Bookmark Topic Watch Topic
  • New Topic

Log

 
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?"
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!