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
Why does the tag url-encode javascript and mailto links?
Why is actionform a base class rather than an interface?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What is a policy?
What is the form of storage space in java?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
What is synchronization and why is it important?
Write a program to show synchronization?
What are the sequence of steps to write pub or sub model kind of application?
What does module-relative mean?
What are the diff types of exception?
What restrictions are placed on the location of a package statement within a source code file?
Is the session factory thread safe?
What is the relationship between an event-listener interface and an event-adapter class?
Difference between DurableSubscription and non- DurableSubscription?