单选题:What is the output of the following JavaFX program?
What is the output of the following JavaFX program? @[D](2)
###### import javafx.application.Application;
###### import javafx.stage.Stage;
public class Test extends Application {
###### public Test() {
###### System.out.println("Test constructor is invoked.");
###### }
###### @Override // Override the start method in the Application class
###### public void start(Stage primaryStage) {
###### System.out.println("start method is invoked.");
###### }
###### public static void main(String[] args) {
###### System.out.println("launch application.");
###### Application.launch(args);
###### }
###### }
A. launch application. start method is invoked. Test constructor is invoked.
B. start method is invoked. Test constructor is invoked.
C. launch application. start method is invoked.
D. launch application. Test constructor is invoked. start method is invoked.
E. Test constructor is invoked. start method is invoked.
A.launch application. start method is invoked. Test constructor is invoked.
B.start method is invoked. Test constructor is invoked.
C.launch application. start method is invoked.
D.launch application. Test constructor is invoked. start method is invoked.
E.Test constructor is invoked. start method is invoked.
答案:D
###### import javafx.application.Application;
###### import javafx.stage.Stage;
public class Test extends Application {
###### public Test() {
###### System.out.println("Test constructor is invoked.");
###### }
###### @Override // Override the start method in the Application class
###### public void start(Stage primaryStage) {
###### System.out.println("start method is invoked.");
###### }
###### public static void main(String[] args) {
###### System.out.println("launch application.");
###### Application.launch(args);
###### }
###### }
A. launch application. start method is invoked. Test constructor is invoked.
B. start method is invoked. Test constructor is invoked.
C. launch application. start method is invoked.
D. launch application. Test constructor is invoked. start method is invoked.
E. Test constructor is invoked. start method is invoked.
A.launch application. start method is invoked. Test constructor is invoked.
B.start method is invoked. Test constructor is invoked.
C.launch application. start method is invoked.
D.launch application. Test constructor is invoked. start method is invoked.
E.Test constructor is invoked. start method is invoked.
答案:D