File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Mock Exam Errata and the fly likes MindQ Mock Exam Errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "MindQ Mock Exam Errors" Watch "MindQ Mock Exam Errors" New topic

MindQ Mock Exam Errors

Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
I took the MindQ Mock Exam on your site, but found myself disagreeing with three of the answers given in the answer key.
Question 33: The answers given are a, b, and e. But d is also correct, because it is always legal to declare unchecked exceptions such as ArithmeticException even if the method you're overriding hasn't done so.
Question 34: The answer given is a. It should be b, because "super" is a keyword that cannot be used as an identifier.
Question 36: The answer given is b(1). It should be a(0) because string literals are never garbage-collected. The answer given would be correct if the example were changed to:

String name;
String newName = new String("Nick");
newName = new String("Jason");
name = new String("Frieda");
String newestName = name;
name = null;
//Line A

Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Anselme Bender

Joined: May 22, 2002
Posts: 21
Hi Ron,
I found the following at this address where there is a lot of interesting informations
Intern and garbage Collection
In the early JDKs, any string you interned could never be garbage collected because the JVM had to keep a reference to in its Hashtable so it could check each incoming string to see if it already had it in the pool. With JDK 1.3 came weak references. Now unused intered strings will be garbage collected.
Hope this help

Anselme Bender<br />SCJP2
I agree. Here's the link:
subject: MindQ Mock Exam Errors
It's not a secret anymore!