Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent : Answer for Ques. 4 on HF page 497.....

 
AshuShweta Tokeria
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer says that

"Mandatory and NotSupported are dangerous, because they throw exceptions, but
Supports is the riskiest.... because it means at runtime you don�t know whether it will run in a transaction or not."

From the previous page (495) we know that NotSupported doesnot throw an exception.

Please provide with correct answer.

Ash
 
B.Sathish
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mandatory and Never are dangerous as they throw exceptions. Supports is the riskiest as you don't know whether you will or not run in an Unspecified Transaction Context
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic