What is the function of the subList(int fromIndex, int toIndex) method of the List interface?

What is the function of the subList(int fromIndex, int toIndex) method of the List interface?



Answer: Creates a sublist from starting from the inclusive fromIndex to the exclusive toIndex.


Learn More :

Data Structures

Learn More Multiple Choice Question :