In HashTable I am storing null value..then what is the
error it will show
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / karthik
Normally hastable doen't allow null value, it will through
run time exception like NullPointerException
| Is This Answer Correct ? | 1 Yes | 0 No |
What is the main functionality of RRL(Remote Reference Layer)?
What is the difference between the font and fontmetrics classes?
Howmany interfaces are used in RMI?
Can you give me a simple example of using the requiredif validator rule?
What is JNI?
whats is mean by tiles in struts
whats is mean by connectionpooling
How many JSP scripting elements and what are they?
Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.
what are memory considerations of jsp compares to other web components?
What is table mutation and how do you avoid it?
Can you control when passivation occurs?