Solved

Complete This Code Fragment to Ensure That the Application Exits

Question 42

Multiple Choice

Complete this code fragment to ensure that the application exits properly when the user closes the frame:
JFrame frame = new JFrame() ;


A) frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) ;
B) JFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) ;
C) JFrame.setCloseOperation(JFrame.EXIT) ;
D) frame.setCloseOperation(JFrame.EXIT) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions