• 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 ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Test 283  RSS feed

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

Thanks
Madhu
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
madhu bharathula
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!