A Java Developer's Quiz: Part Three

By Janice J. Heiss, October 2009  

For this quiz, SDN staff author Janice J. Heiss surveyed recent java.sun.com articles in search of questions that might challenge, inform, entertain, amuse, and provoke you. The questions aspire to reflect both the intellectual curiosity and spirit of fun to be found in the Java community. We hope you enjoy taking this quiz.

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


  1. In using NetBeans IDE 6.7 to combine JAR files into a single JAR file, to verify that the JAR file contains the appropriate libraries, which of the following methods should you not use?
     A. Use the command-line tool: jar tvf ( filename) .
     B. Use a number of OS-based tools to inspect the JAR files (or ZIP files, if you change the extension).
     C. Double-click on the JAR file to be sure that the Java runtime can execute it.
     D. All three methods will work.
  2. JDK 7 provides support for dynamically typed languages in the Java virtual machine (JVM). Which of the following is not a part of this support?
     A. The addition of a new Java bytecode, invokedynamic, for method invocation.
     B. A linkage mechanism that involves a new construct called a method handle.
     C. A mechanism designed to "redynamize" compiler implementation called "REDYimp".
  3. According to Kirk Pepperdine, which statement is false:
     A. Developers are good at writing performance code.
     B. Developers are good at coding.
     C. Developers are good at performance tuning.
  4. When Kirk Pepperdine gives a performance tuning exercise to a group of developers and testers:
     A. The worst developers perform best.
     B. The best developers perform best.
     C. There is no relationship between skill as a developer and skill at performance tuning.
     D. The testers perform better than the developers.
     E. C and D.
     F. A and D.
  5. Which of the following is not a new feature of Java DB, version
     A. In-Memory Database
     B. Generated Columns
     D. BUILTIN authentication scheme
     E. SQL Roles
  6. According to Java EE expert and Java Champion Adam Bien, in order to better accomplish cloud computing Java EE does not need work in:
     A. Dynamic discovery
     B. Self-healing
     C. Dynamic load balancing
     D. Remote profiling and monitoring capabilities
     E. Standardized packaging
     F. All of the above
     G. D and E
  7. Here, seasoned developers Tor Norbye, Adam Bien, Alan Williamson, and Chet Haase talk about the process of writing code. Match the quote with the developer.
    1. "It is almost mystical and hard to describe. If you are really motivated, you can develop whatever you want in the shortest period of time. The sky is the limit! I try to analyze the problem, then write some code, verify the solution, and sometimes adjust the problem to code in talking with customers. So the natural way to write code is in short iterations and feedback cycles with a short waterfall phase."
    2. "I take the prototype approach. Maybe it's insecurity or a need for quick gratification, but I am never confident of a particular approach until I've gotten the main elements working in some simple way first. So I start out writing ugly hacky code that just gets the basics working."
    3. "When I'm writing code, it's typically to implement some new feature, and my approach is to first bang out the basic skeleton, and then incrementally fill in the gaps, testing manually by executing the code as I go along. Once I have something basic working, I write some unit tests. When the basic tests are passing, I start worrying about corner cases. I approach these by thinking of every possible corner case and add unit tests for these. I then use these unit tests to hunt down bugs in the code. Therefore, my approach is to code the functionality first, then test later."
    4. "I do a lot of whiteboarding and drawing of boxes! When it comes to writing code, I do a lot of boilerplating, laying out classes, method calls, etc., and don't worry about the details of the methods. So lots of return null; everywhere."
     A. Alan Williamson, Adam Bien, Chet Haase, Tor Norbye
     B. Alan Williamson, Tor Norbye, Adam Bien, Chet Haase
     C. Adam Bien, Chet Haase, Alan Williamson, Tor Norbye
     D. Adam Bien, Chet Haase, Tor Norbye, Alan Williamson
  8. In discussing problems companies have getting the most out of Java technology, which of the following does Masood Mortazavi not mention?
     A. A mishmash of technologies.
     B. Inability to properly select technologies.
     C. A relative increase in nonstandard, de-facto programming platforms.
     D. A shortage of available Java developers.
  9. Which of the following is not an example of recent innovation in the JavaFX community, which is focused on creating visually engrossing, rich Internet applications (RIAs)?
     A. TwitterFX
     B. MemeFX
     C. WidgetFX
     D. WheelbarrowFX
  10. According to Masood Mortazavi, Java EE is unique in which of the following areas?
     A. Separation of business logic and system concerns
     B. Portability
     C. Long-term maintenance
     D. Scalability
     E. A, B, and C
     F. All of the above
  11. According to Kirk Pepperdine, which of the following is a serious problem for developers?
     A. When developers don't fully understand a problem, they tend to write code that is overly complex.
     B. When developers understand a problem well, they tend to apply a lot of optimizations and simplifications and often end up with messy code.
     C. When developers are overly pressed for time and need to go on to the next task, they never get around to cleaning up the code and end up leaving lots of complex code in their application.
     D. All of the above.
     E. 1 and 2.
     F. 2 and 3.

Left Curve
Java SDKs and Tools
Right Curve
Left Curve
Java Resources
Right Curve
Java 8 banner (182)