Q:

What does List [] mean in java?

i came across this syntax
List<String>[] result= new List[4];

I know what a list is in java and also generic but whats the purpose of the array bracket in this case. Does this mean it's an array of list of strings?

A:

List[] result : Contains three things
1. List
2. []
3. result

Data type is List of strings
Array
variable name

So in this case result will store Array of List of string.

