In java Array or List Which is faster?

better to use a profiler to test which is faster.


My personal opinion is that you should use Lists.


I work on a large codebase and a previous group of developers used arrays everywhere. It made the code very inflexible. After changing large chunks of it to Lists we noticed no difference in speed.