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
What modifiers may be used with an inner class that is a member of an outer class?
What is the purpose of the wait(), notify(), and notifyall() methods?
Will the general public have access to the infobus apis?
What is ioc concept & explain it?
What modifiers may be used with an interface declaration?
What you mean by COM and DCOM?
Why a client should be multithreading? Explain.
What is Stream Tokenizer?
Difference between DurableSubscription and non- DurableSubscription?
Why doesn’t the focus feature on the tag work in every circumstance?
What is message driven beam?
what is a portable component?
What state does a thread enter when it terminates its processing?
What is JTS?
What is table mutation and how do you avoid it?