Does java list allow null?
Answer / Sumit Kumar Singh
Yes, as mentioned earlier, both ArrayList and LinkedList in Java can contain `null` elements.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is serial version uid and its importance in java?
How are Java source code files named?
Can we start a thread twice in java?
Which are different kinds of source code?
What are the types of loops in Java, and how are they used?
Give a brief description of java socket programming?
What is formatted output in java?
How does regex work?
What is instanceof keyword?
What is “try and catch” in java
What is the purpose of garbage collection in java? When is it used?
What is the use of default method in interface in java? Explain