In HashTable I am storing null value..then what is the
error it will show

Answer Posted / mvteja

Hashtable does not contain null value. if v try to store
null value, v will get the following error.




F:\Test>javac -d . Test.java

F:\Test>java a.b.c.Test
Exception in thread "main" java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at a.b.c.Test.<init>(Test.java:18)
at a.b.c.Test.main(Test.java:27)

F:\Test>

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where can I ask questions and make suggestions about seam?

853


How messaging services are done, before release of JMS?

1832


What is the difference between the session.get() method and the session.load() method?

833


What is in-memory replication?

787


Why won’t the jvm terminate when I close all the application windows?

994


What is difference between object state and behavior?

837


Difference between hashmap and hashtable?

856


What is abstract schema?

782


What are the purpose of introspection?

960


What do you know about seam?

795


Why a client should be multithreading? Explain.

830


what are memory considerations of jsp compares to other web components?

6279


wahts is mean by dynavalidatorform in struts/

1813


What are the call back methods in entity bean?

798


Is “abc” a primitive value?

839