Welcome to the Ranch
The
subList() method returns a List. That means the exact implementation details are private, and might change. You can use that method without knowing the implementation details.
The code is not in jdk/scr, but in a file called src.zip inside your Java™ installation directory. You can see the code out of interest, like this:-
1: Copy src.zip to a directory you have write permission in (eg /home or My documents)2: Unzip it.3: Open the java folder4: Open the util folder (note the folder names match the package name)5: Open the AbstractList.java file with a text editor.Chandrakant Talele has helpfully given you the line number; it is a package-private inner (non-static) class whose instance is being returned. Note there are two versions depending on whether the surrounding object does or does not implement java.util.RandomAccess.