Dan Chisholm's
Java Programmer Certification Mock Exam

Please Help Save a Tree!

The pages of this web site are not formatted to conserve paper, but my new book (ISBN: 0-9745862-0-X) is formatted to save paper, save your printer cartridge, save a loose-leaf binder, and save money. If you prefer to work my exams from printed pages, then give your printer a rest and buy my new book.

Today, you can find my book at amazon.com.

Answers: Java Programmer Certification Mock Exam
No.AnswerRemark
1None of the above  All of these are keywords of the Pascal programming language, but none are Java keywords.  
2b  d  g  h  strictfp  super  goto  native   
3b  e  g  h  k  goto  new  finally  const  do   
4c  e  g  i  const  continue  extends  break  All of the letters of all Java keywords are lower case. The word instanceof is a Java keyword, but instanceOf is not.  
5b  d  f  i  j  k  catch  instanceof  const  goto  import  transient   
6a  b  c  d  g  i  j  k  byte  short  int  long  float  double  boolean  char   
7None of the above   
8a  e  transient  volatile  Serializable, Runnable, Externalizable, and Cloneable are all interfaces. Thread.run is a method. The keywords transient and volatile are field modifiers.  
9b  g  i  goto  implements  const  The words virtual, ifdef, typedef, friend, struct and union are all words related to the C programming language. Although the words const and goto are also related to the C programming language, they are also Java keywords.  
10import, break, double, exception, throws  The word exception is not a Java keyword. The words import, break, double and throws are Java keywords.  
11continue, finalize, goto, package, synchronized  The word finalize is the name of a method of the Object class: It is not a keyword. The words continue, goto, package and synchronized are all Java keywords.  
 
Ask a Question
Send an email to me.
 
Java Question and Answer Forums
JavaRanch Big Moose Saloon
Marcus Green's Discussion Forum
java.sun.com Forums, Chat and User Groups
 
Other Resources
Java Language Specification
Java Virtual Machine Specification
Java 2 Platform, Standard Edition, v 1.4.0 API Specification
 
Tutorials
Learning the Java Language
Operator Precedence Chart, Expressions, Statements, Blocks
Programming with Assertions
 

Copyright © 2002-2004, Dan Chisholm
All rights reserved.