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
How a component can be placed on Windows?
Explain how will the struts know which action class to call when you submit a form?
What is a class loader?
what are the activation groupworks?
What state does a thread enter when it terminates its processing?
What class is used to create Server side object ?
What is the difference between java class and bean?
What are various types of class loaders used by jvm?
Have you used threads in Servelet?
What is the difference between the session.update() method and the session.lock() method?
Is the infobus client side only?
Can I use multiple html form elements with the same name?
Is the session factory thread safe?
What are the pros and cons of detached objects?
What value does readline() return when it has reached the end of a file?