Hi there -- I think the answer is *technically* correct, in English, but I don't think it's worded very well. But there are questions that use this kind of wording on the real exam, so I'll try to explain a little:
A. For session beans, transaction attributes can be applied only to methods in the bean's component interface.
This says that transaction attributes cannot be applied to methods in anything but the bean's component interface. The key point to your issue is that this sentence does *NOT* say that transaction attributes can be applied to ALL methods in the bean's component interface. So, the way you reworded it would be correct. And if we had said:
A. For session beans, transaction attributes can be applied to all methods in the bean's component interface, then it would have been wrong.
But the current wording does make a true statement -- attributes can be applied only to methods in the bean's component interface. It does not specify *which* methods those might be...
Anyway, I agree that it can be misinterpreted, but I will tell you that
you should look *very* hard in the real exam for words like "must", "all", "only", and "not" -- because those qualifiers really matter. If we make a statement in an answer, then you have to ask, "Is this correct... even if it is not the complete story?" and if the answer is, "Yes, this statement is true, even though it doesn't say EVERYTHING that is true about this topic..." then you must still select true. This is kind of tricky, and I have tremendous respect for all of you who take this exam when English is not your first language. It is hard enough to parse for those of us for whom English IS our native language. Non-native English speakers should get a *special* prize for passing the exam!!
cheers and thanks for bringing this up.
Kathy