Back to Multiple Choice Quiz
Node in Two Parents
Java quiz · Question 48What happens when this code runs?
Code
1Label shared = new Label("Hello");23VBox box1 = new VBox();4VBox box2 = new VBox();56box1.getChildren().add(shared);7box2.getChildren().add(shared);