Sun Java Solaris Communities My SDN Account Join SDN
 
Quizzes

java.sun.com Quiz

 

Quizzes Index

January 2003

Duke Test your knowledge of Java technology topics covered recently on java.sun.com.

  1. What is "GC sequential overhead"?
     A. The total time doing garbage collection in the JVM1.
     B. The percentage of an application's run time spent doing garbage collection in the JVM, while the application is paused.
     C. The total runtime of an application minus the time paused for garbage collection.
     D. None of the above.


  2. A JAX-RPC client can use one of several programming models: stubs-based, dynamic proxy, and which other?
     A. static invocation interface (SII)
     B. callback
     C. marshalling
     D. dynamic invocation interface (DII)


  3. Is it advisable to use java.io.* in an Enterprise JavaBeans (EJB) component to access files?
     A. Yes
     B. No


  4. What does timeout specify in the following code fragment to be run on the J2SE 1.4 platform?
        int timeout = 500; // half a second
        SocketAddress socketAddress = 
          new InetSocketAddress(host, port);
        Socket socket = new Socket();
        socket.connect(socketAddress, timeout);
    


     A. How long the request waits for the server to respond with a valid connection.
     B. How long a read call from the socket waits before it gives up.
     C. How long the socket connection can be enabled.
     D. How long the socket connection can be disabled before the connect request is automatically repeated.


  5. What Java Management Extensions (JMX) layer contains components that enable management applications to communicate with JMX agents?
     A. Instrumentation layer
     B. Agent layer
     C. Distributed layer
     D. Management layer


  6. What is a singleton?
     A. A static method
     B. A design pattern
     C. A single-element array
     D. An empty string


  7. Which of the following statements about ICEMail is correct?
     A. It is an open source tool
     B. It implements SOAP
     C. It is an Apache Software Foundation project
     D. None of the above


  8. True or false: the == operator compares objects, while the equals method is used with data types.
     A. True
     B. False


  9. What is a commonly used, alternative name for generics?
     A. propagators
     B. derived types
     C. static declarations
     D. parameterized types


  10. Which of the following statements are true regarding container-managed relationships (also called "CMR")?
     A. CMR fields are accessor methods, not class fields
     B. Container-managed relationships may be used only between local bean interfaces
     C. Relationships may be unidirectional or bidirectional
     D. All of the above


1 As used on this web site, the terms "Java virtual machine" or "JVM" mean a virtual machine for the Java platform.