How can you say HashMap is syncronized?

Answer Posted / dijesh

hashmap is unsynchronised and hash table is
synchronised.....hashmap permits null...but hashtable does
not.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the right data type to represent a price in java?

574


Is there any way to find whether software installed in the system is registered by just providing the .exe file? I have tried the following code but its just displaying the directory structure in the registry. Here the code : package com.msi.intaller; import java.util.Iterator; import ca.beq.util.win32.registry.RegistryKey; import ca.beq.util.win32.registry.RootKey; public class RegistryFinder { public static void main(String... args) throws Exception { RegistryKey.initialize(RegistryFinder.class.getResource("jRe gistryKey.dll").getFile()); RegistryKey key = new RegistryKey(RootKey.HKLM, "Software\\ODBC"); for (Iterator subkeys = key.subkeys(); subkeys.hasNext();) { RegistryKey subkey = subkeys.next(); System.out.println(subkey.getName()); // You need to check here if there's anything which matches "Mozilla FireFox". } } }

1357


If you do not want your class to be inherited by any other class. What would you do?

566


How do generics work in java?

524


How can a gui component handle its own events?

600






why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

557


Can we write method inside a method in java?

531


How big is a 64 bit float?

542


When can we say that threads are not lightweight process in java?

598


Can I declare class as static or private?

547


What does int argc char * argv [] mean?

524


How java is similar to c?

591


Explain about complier design(phases)

632


Can you explain the private protected field modifier?

576


What is an example of character?

559