Can arraylist hold different types java?



Can arraylist hold different types java?..

Answer / Bharat Sah

Yes, ArrayList in Java can hold elements of different data types. This is because ArrayList is a class that implements the List interface and it stores its elements in an object array under the hood.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why does java have two ways to create child threads? Which way is better?

1 Answers  


What is matcher in java?

1 Answers  


What is meant by vector class, dictionary class, hash table class, and property class?

1 Answers  


What does opcode mean?

1 Answers  


What are streams in java 8?

1 Answers  


Is java a compiler?

1 Answers  


What is the purpose of java?

1 Answers  


Can you start a thread twice in Java?

1 Answers  


What JNDI(Java Naming and Directory Interface) provides?

4 Answers  


What is a control variable example?

1 Answers  


How concurrent hashmap works?

1 Answers  


How to connect to a remote database using Applet?

1 Answers  


Categories