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 |
Define aop(assepct oriented programing)?
Explain the steps in details to load the server object dynamically?
Differences between applications and applets?
What is Servlet Filter And What does it work?
What is meant by Superconductivity?
I wantr to know, How many number of users logged in to website? can any one answer
hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me
What is synchronization and why is it important?
diff between jsp include directive and jsp action include?
What is the relationship between an event-listener interface and an event-adapter class?
whether the connectionpooling used in struts?
Name the method to find, if a thread is active or not?