Chandana Garlapati wrote:Which method names follow the JavaBeans standard? (Choose all that apply.)
This question is from k&B.
the answer is only 2 and 4 options.
why not 1st option??
can anyone explain??
Because of JavaBeans Standard.
getStopped() or isStopped() are both valid JavaBeans names for a boolean property.
getSize()is a valid JavaBeans getter name for a property named
"size." Keep in mind that you do not need to have a variable named size
1) is not valid as per JavaBeansStandard.
There is javabean listner naming rule where Listner word is required.
addSizeListener(SizeListener sl) is good as per Javabean Listner naming rule.
SCJP 6.0 Certified 96%
Joined: Jul 06, 2009
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com