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
Where can I ask questions and make suggestions about seam?
How messaging services are done, before release of JMS?
What is the difference between the session.get() method and the session.load() method?
What is in-memory replication?
Why won’t the jvm terminate when I close all the application windows?
What is difference between object state and behavior?
Difference between hashmap and hashtable?
What is abstract schema?
What are the purpose of introspection?
What do you know about seam?
Why a client should be multithreading? Explain.
what are memory considerations of jsp compares to other web components?
wahts is mean by dynavalidatorform in struts/
What are the call back methods in entity bean?
Is “abc” a primitive value?