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 |
Explain the stub's and skeleton's functionality?
What is permgen or permanent generation?
How will the struts know which action class to call when you submit a form?
How many layers are there in RMI and what are they?
Why is actionform a base class rather than an interface?
What is RMI and what are the services in RMI?
What are preemptive scheduling and time slicing and what is the difference between them?
what is the proxy pattern?
When a thread blocks on i/o, what state does it enter?
diff between jsp include directive and jsp action include?
What is the difference between the string and stringbuffer classes?
Explain how will the struts know which action class to call when you submit a form?