← Back to Question List
Java Quiz #48
Node in Two Parents
What 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);