Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Quizzes

The Java SE 6 Holiday Quiz

By Robert Eckstein, December 2005  
Duke

So you think you know everything there is to know about Java Platform, Standard Edition (Java SE) version 6? If you're just starting to peek at the exciting new Java SE betas, here's a fun way to learn about some of those great new features that are only a download away.

Choose the best answer(s) for each question, then click Submit to see how you scored.

 

  1. What group makes decisions on which functionality will be present in the final release of Java SE 6?
     A. JSR 145
     B. JSR 270
     C. JSR 10
     D. Top corporate executives and politicians in a smoke-filled room


  2. Sun's implementation of Java SE 6 introduces which of the following new features:
     A. An embedded Mozilla Rhino JavaScript interpreter
     B. New system-tray functionality
     C. New splash-page functionality
     D. All of the above


  3. What important addition to the JTabbedPane was added in Java SE 6?
     A. The ability to add a tooltip to the tab
     B. The ability to add an icon to the tab
     C. The ability to substitute a Component as a tab's identifier
     D. The ability to add and remove tabs


  4. With Java SE 6, what functionality can you now perform with java.io.File?
     A. Set permissions and check free and usable disk space.
     B. Check whether a file is marked as hidden.
     C. Check whether a file is in fact a directory and determine its parent directory.
     D. Nothing was added to java.io.File.


  5. JSR 105 calls for support for XML encryption and digital signatures in Java SE 6. In what package can you find this functionality?
     A. java.xml.security
     B. javax.xml.crypto
     C. java.security
     D. javax.xml.validation


  6. What new functionality was added to JTable in Java SE 6?
     A. The ability to resize columns in a JTable
     B. The ability to move columns in a JTable
     C. The ability to define custom cell table views
     D. The ability to sort and filter data in a JTable


  7. Java SE 6 now incorporates an advanced version of SwingWorker into the core. What is the purpose of SwingWorker?
     A. It helps to move lengthy GUI-interacting tasks into a dedicated thread, so as not to block the event-dispatch thread.
     B. It coordinates interthread communication between an executing thread and the event-dispatch thread.
     C. It can aggregate several intermediate parameters generated by the worker thread into a single, generic "return" object.
     D. All of the above.


  8. What new functionality does the JTextComponent class include?
     A. Additional printing support, including headers, footers, and layout
     B. Bidirectional text
     C. Embedded scrolling
     D. HTML support


  9. What additional calendar does Java SE 6 now support?
     A. Thai Buddhist
     B. Islamic lunar
     C. Mayan
     D. Japanese imperial


  10. What is the purpose of the new java.text.Normalizer class?
     A. It provides a spell-checking service provider interface.
     B. It sorts text quickly and efficiently.
     C. It transforms text into an equivalent composed or decomposed form.
     D. It provides online, real-time language translation.


  11. JSR 221 is defining the Java DataBase Connectivity (JDBC) 4.0 software specification. Which of the following are significant additions in JDBC 4.0 software, which will be included in Java SE 6?
     A. SQL:2003 XML support
     B. National character-set support
     C. Large object (LOB) enhancements
     D. All of the above


  12. Java SE 6 includes a new modality model for dialog boxes. What previous JDK issue(s) does this address?
     A. The user was unable to access a modal dialog box if its parent window was displayed above it.
     B. JavaHelp windows could sometimes be inadvertently affected by modal dialog boxes.
     C. There was only one blocking strategy for AWT and JFC/Swing modal dialog boxes.
     D. All of the above.