What is the output of the following code?

```
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;

public class Test {
public static void main(String[] args) {
IntegerProperty d1 = new SimpleIntegerProperty(1);
IntegerProperty d2 = new SimpleIntegerProperty(2);
d1.bind(d2);
System.out.print("d1 is " + d1.getValue()
+ " and d2 is " + d2.getValue());
d2.setValue(3);
System.out.println(", d1 is " + d1.getValue()
+ " and d2 is " + d2.getValue());
}
}
```
a. d1 is 2 and d2 is 2, d1 is 3 and d2 is 3
b. d1 is 2 and d2 is 2, d1 is 2 and d2 is 3
c. d1 is 1 and d2 is 2, d1 is 1 and d2 is 3
d. d1 is 1 and d2 is 2, d1 is 3 and d2 is 3

a

Computer Science & Information Technology

You might also like to view...

Which of the following best describes detective controls?

A. Reduce the likelihood of a deliberate attack. B. Protect vulnerabilities. C. Reduce the effect of an attack. D. Discover attack and trigger preventive or corrective controls.

Computer Science & Information Technology

To test a second condition only after the result of the first condition is known, ____________________ If statements can be used.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology