Owl Teach Yourself Java 2 in 21 Days Pro, Third Edition
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / THANKS
ROGERS CADENHEAD

Day 26: Java Web Start

Certification Practice

Each chapter of the book ends with a Certification Practice question that's comparable to what you could expect to be asked on a Java certification test. Here's the answer for chapter 26:

Answer (b) is correct. The application compiles successfully, but it does not display anything in the frame because nothing was added to the content pane. The slider should be added to the frame by calling pane.add(value) after the slider has been created.

Answer (a) is incorrect. The application compiles but does not run correctly because it doesn't display the slider.

Answer (c) is incorrect. The content pane is empty, but this does not prevent the application from compiling successfully.

Answer (d) is incorrect. The new AskFrame() statement is correct. It calls the AskFrame constructor without assigning the object to a variable. Edit

Return to Day 26

HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / THANKS

Valid HTML 4.01!

Valid CSS!