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.bindBidirectional(d2);
System.out.print("d1 is " + d1.getValue()
+ " and d2 is " + d2.getValue());
d1.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...

Which of the following statements is false?

a) Most devices in a system are represented by device special files. b) Devices that are controlled by the same major identification number are controlled by the same driver. c) Device classes include character, block and network. d) Device special files are accessed via the virtual file system.

Computer Science & Information Technology

Stand-alone macros do not display as objects in the Navigation Pane

Indicate whether the statement is true or false

Computer Science & Information Technology

Match the following terms to their meanings:

I. Data source II. Delimited III. Mail merge IV. Main document V. Definition A. Contains the text, letter, or memo used in a mail merge B. The structure of the database — fields names, data types, and field properties C. Each field is separated by a single character and records are on single lines D. Combine a main document and a data source to create a letter or memo E. Contains the names and addresses of individuals to be merged into a letter

Computer Science & Information Technology

To add a scroll bar, you first need to add the ________ tab

Fill in the blank(s) with correct word

Computer Science & Information Technology