 |
|
Oracle Tips by Burleson |
Java Collections Framework
Consider the following code snippet:
Map myMap =
new HashMap();
myMap.put(“key”, “String1”);
myMap.put(“key”, “String2”);
How many values will be stored in the map and
what are they after executing this code block?
Skill Level: Intermediate
Expected answer:
For the answer to this and other
Java job interview questions visit the
code depot for the book
http://www.rampant-books.com/book_2004_1_job_java.htm
The above text is
an excerpt from:
Conducting the Java
Job Interview
ISBN 0-9744355-8-9
by Jeffrey M. Hunter
http://www.rampant-books.com/book_2004_1_job_java.htm
 |
For more details and scripts, see my new book "
Oracle
Tuning: The Definitive Reference", over 900 pages
of BC's favorite tuning tips & scripts.
You can buy it direct from the publisher for 30%-off and get
instant access to the code depot. |
|