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 runnable?
Why a client should be multithreading? Explain.
whats is mean by object and class?
What are preemptive scheduling and time slicing and what is the difference between them?
Explain what is orm?
What is the relationship between local interfaces and container-managed relationships?
Difference Between java & javax
5 Answers Sun Microsystems, Wipro,
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
What is prototype?
what do u mean by java bean??
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
what is a portable component?