|
Training, Open Source computer languages
|
|
|
|
Java Programming quiz, level Advanced, question 22
| Question: | When would you use a Hashtable in preference to a Hashmap |
| Answer 1: | When writing code to conform to an older Java API and when writing code that is required to be threadsafe. This was the CORRECT answer |
| Answer 2: | Only when writing code that is required to be threadsafe |
| Answer 3: | Only when writing code that is required to conform to the Java 1.1 API |
| Answer 4: | these days - never |
| Answer 5: | When writing code that you're sure will be run by a Java 2 virtual machine only |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|
©
WELL HOUSE CONSULTANTS LTD., 2012: Well House Manor •
48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 •
EMAIL: info@wellho.net •
WEB: http://www.wellho.net •
SKYPE: wellho |