subject
Computers and Technology, 09.03.2020 20:29 Ziham

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:40
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
What is the original authority for copyright laws
Answers: 1
question
Computers and Technology, 24.06.2019 09:30
What is the definition of digital literacy?
Answers: 1
You know the right answer?
What is the output of the following code?

import javafx. beans. property. IntegerPropert...
Questions
question
Mathematics, 08.04.2021 01:00
question
Mathematics, 08.04.2021 01:00
question
History, 08.04.2021 01:00
question
Mathematics, 08.04.2021 01:00
Questions on the website: 13722363