What is an empty list in java?



What is an empty list in java?..

Answer / Dishant Vaish

An empty list in Java is a List (usually ArrayList) that contains no elements. It can be represented as: List<String> myList = new ArrayList<>();

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

When will we use them?

1 Answers  


what is the difference between a java object reference and c++ pointer?

4 Answers  


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

1 Answers   HCL,


Is hashset ordered java?

1 Answers  


what is the difference between HashMap and Hashtable

17 Answers   Value Labs, Virtusa,


Can we store variables in local blocks?

1 Answers   Global Logic,


How does hashmap work in java ?

1 Answers  


What are kinds of processors?

1 Answers  


Difference between array and arraylist.

23 Answers   Arise Solution, Banca Sella, iFocus, NIC, Sai Softech, Solartis, TCS, Verizon,


Can I overload to string method

1 Answers   UHG,


How many decimal places is a double?

1 Answers  


Can we define package statement after import statement in java?

1 Answers  


Categories