1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)

Java Tutorials

Q.Difference between HashMap and HashTable?

a)The key difference between the two is that access to the Hashtable is synchronized while access to the HashMap is not synchronized.
b)HashMap permits null values as Key, while Hashtable doesn't.
c)iterator in a HashMap is fail-safe(Fail-safe is relevant from the context of iterators.
If an iterator has been created on a collection object and some other thread tries to modify the collection object "structurally",
a concurrent modification exception will be thrown) while the enumerator of HashTable is not.

Reviews and Comments

PMP, CAPM, PMI is a registered certification mark of the Project Management Institute, Inc

Copyright © www.techfaq360.com 2019

About US | Contact US | Privacy Policy | Terms and Conditions  | Website disclaimer  | Cancellation and Refund Policy  | Shipping & Delivery Policy