Hi, Can anybody tell me the right answers for the following questions which I got in the sample test ?? 18) When promoting JavaBean features in VisualAge, which of the following are true? a)Other beans can now make connections to the promoted feature b) It is possible to promote JavaBean properties, methods and events c) It is common practice to promote all public methods d) Feature promotion can be performed from the Beans List window in the Composition Editor we need to choose three right answers. I know that b and d are correct. But i am confusing between a and c. 2)Constrained Bean properties: a) fire propertyChanged events before and after the property is modified b) cannot have changes vetoed by a listener c) must provide an addVetoableChangeListener() method d) are also recommended to be bound Multiple Select - Please select all of the correct answers (this question has 2 correct choices). Are the answers b and c ?? 3) Which of the following MUST be done to serialize a bean using the BeanInfo page? a) Create a custom serialization class and set it to the Customiser property b) Set the Hidden property to true c) Set the Hidden-State property to true d) Set the Expert property to true Single Select - Please select the best answer (one and only one choice must be selected).
Hi - My answers (which may be wrong!) are: Q18 a,b,d (b,d - I am sure about, a is kind of a guess) Q2 c,d (a - Pretty sure only one event is fired, after property change) (b - can have changes vetoed - that is the whole point, isn't it?) (d - ? I cannot find this recommendation anywhere in help!) Q3 c - set Hidden-state to true. I got this answer from the 'help' pages, look under 'serializable'. Rebuttals welcome!, Guy
posted 16 years ago
Hi, Thanks for your reply. For the second question, I was in an impression that if the listener vetoes the change, then the changes cannot be confirmed by the source right. It has to revert back to it's normal value. Is this not true ?? Thanks Madhu
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database