1. Which of the fields are serialized automatically by the java serialization mechanism
a) All instance fields that implement the serializable interface
b) All static fields
c) Both a & b
d) Neither (a) nor(b)
2. which of the following is the most correct statement with respect to JavaFX?
a) A scene may contain a stage, which may contain widgets
b) A stage may contain a scene, which may contain widgets
c) A widget may contain a stage , which may contain a scene
d) A stage may contain a widget, which may contain a scene
3) Suppose b1 is an object of type Button how do you set a listener for b1?
a) b1.setListener(this);
b) b1.setOnAction();
c) b1.setOnAction(this);
4) In UML, composition is shown with a black diamond at one end of the relationship.
a) true
b) false
1) Option (a) is the correct answer.
All instance fields that implement the serializable interface are serialized automatically by the java serialization mechanism.
2) Option (a) is the correct answer.
A scene may contains a stage, which may contains widgets.
3) Option (a) is the correct answer.
We can set set a listener for button b1 by using: b1.setListener(this);
4) It is true.
In UML, composition is shown with a black diamond at one end of the relationship.
Hope this helps.
Get Answers For Free
Most questions answered within 1 hours.