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
Is there a guarantee of uniqueness for entity beans?
Why does the option tag render selected=selected instead of just selected?
Explain phantom read?
Is infobus easy to use?
What is glasgow?
What method is invoked to cause an object to begin executing as a separate thread?
What are transaction attributes?
Why is actionform a base class rather than an interface?
Can I use multiple html form elements with the same name?
Do I need to import javlang package any time? Why ?
Is “abc” a primitive value?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
Are there books about seam?
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
What restrictions are placed on the values of each case of a switch statement?