The Source for Java Technology Collaboration
User: Password:



Evan Summers

Evan Summers's Blog

The Wrong Answers

Posted by evanx on October 30, 2006 at 01:04 PM | Comments (4)

Frank Somerville posted "My Favorite Java Developer interview questions" which i enjoyed reading a minute ago. Here are some answers to avoid ;)


Q. When does the JVM do Garbage Collection?
I got no idea. Who's JVM, is he the janitor here?

Q. What's the difference between an interface and an abstract class?
An abstract class is um, a class that is abstract. An interface is just an interface.

Q. Name the different types of JDBC drivers?
MySQL, PostgreSQL, SQLServer... You want all of them?!

Q. How do I find out how many rows there are in a ResultSet?
Easy. resultSet.length(). No hang on, actually it might be resultSet.length.

Q. Does Java use pass-by-value or pass-by-reference semantics?
For what, an int or a String?

Q. What does "NULL" mean in SQL?
Ok, this must be a trick question. If it's not null, um... zero!?

Pick one and answer it, correctly or incorrectly :) Any other good questions?


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • Q. Name the different types of JDBC drivers?
    A. Are you talking about Formula 1 or NASCAR?

    Posted by: kirillcool on October 30, 2006 at 04:27 PM

  • haha, good one, kirill! :) Or "I don't follow motorsport anymore." hee hee

    Posted by: evanx on October 30, 2006 at 05:04 PM

  • Q. Name the different types of JDBC drivers?
    MySQL, PostgreSQL, SQLServer... You want all of them?!

    Honestly 99% of developers have no need to be able to list these off. The details of the actual driver you are using is more important than its theoretical type.

    Posted by: applebanana8 on November 02, 2006 at 09:21 AM

  • applebanana, you make a very good point! ;)

    Posted by: evanx on November 02, 2006 at 12:15 PM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds