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. d1 is 2 and d2 is 2, d1 is 3 and d2 is 3

Computer Science & Information Technology

You might also like to view...

What is the chart element called that classifies the patterns or colors that are assigned to the categories in the chart?

A) Series B) Marker C) Legend D) Label

Computer Science & Information Technology

After a document has completed the review process, the original author can choose to accept or reject each change

Indicate whether the statement is true or false

Computer Science & Information Technology