Skip to main content

A Java Developer's Quiz

Posted by hiheiss on March 4, 2009 at 4:54 PM PST

Put Away Your Books and Get Out a Piece of Paper

Check out a new quiz from yrs truly on I combed through interviews looking for questions that might entertain and inform.

Here's an example:

Fill in the blank: Joshua Bloch says that the strangest thing about the Java platform is __________.

A. Poor Unicode support.
B. java.lang.Cloneable does not contain clone() method.
C. The byte type is signed.
D. The creators of the Java programming language modeled the syntax after C and C++.
E. is an abstract class and not an interface.

Let me know which questions you enjoyed and even which annoyed.

Related Topics >>


Thanks, hemus21, for hazarding a guess. At the risk of giving away info for future readers -- no that was not the answer given by Josh Bloch. It might interest you to know that the answer you chose was an answer given in response to Bloch's comment on by Nils Myklebust on October 30, 2008, ( who said: "The strangest thing to me in Java is still that they modeled the syntax after C and C++. The C syntax was designed for the purpose of making it simple to compile even if it meant making it hard to write and read. A good decision at the time as the compiler technology was rather simple. A bad decision at the Java design time with modern compilers. Eiffel and other languages had shown new ways that didn't even seem to be considered. Then C++ came along apparently based on the idea that programmers couldn't learn a new syntax and the arcana continued. The Java designers seemed to live on in the old times. It all could have been so much better, but a lot of people don't even realize it because they are too used to their hardships. It's a strange world." Care to try another guess?

D. The creators of the Java programming language modeled the syntax after C and C++.

B. The byte type is signed.