• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Test 283  RSS feed

Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).

Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi - My answers (which may be wrong!) are:
(b,d - I am sure about, a is kind of a guess)
(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!)
c - set Hidden-state to true.
I got this answer from the 'help' pages, look under 'serializable'.
Rebuttals welcome!, Guy
madhu bharathula
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!