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 BookSurge.com.
Are you a university student studying Java programming? Do you agree that my book would serve as a helpful workbook and companion to be used along with the Java fundamentals textbook that is currently being used in your class? If so, then please ask your professor to consider using my book in future classes.
If you have any questions or comments concerning my mock exams or my book, then please send an e-mail to me at scjpexam2000@yahoo.com.
I would also like to read your response to the following questions.
| No. | Answer | Remark | |
|---|---|---|---|
| 1 | l | None of the above | All of these are keywords of the Pascal programming language, but none are Java keywords. |
| 2 | b d g h | strictfp super goto native | |
| 3 | b e g h k | goto new finally const do | |
| 4 | c 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. |
| 5 | b d f i j k | catch instanceof const goto import transient | |
| 6 | a b c d g i j k | byte short int long float double boolean char | |
| 7 | j | None of the above | |
| 8 | a e | transient volatile | Serializable, Runnable, Externalizable, and Cloneable are all interfaces. Thread.run is a method. The keywords transient and volatile are field modifiers. |
| 9 | b 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. |
| 10 | d | import, break, double, exception, throws | The word exception is not a Java keyword. The words import, break, double and throws are Java keywords. |
| 11 | e | continue, 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. |