How is Arrays.asList() working? - Cracking the Java Coding Interview

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

To sum it up, you get a List with all the semantics of an array, and other methods simply throw an UnsupportedOperationException

Quinteger
Автор

I have been told non primitive types affect performance, is this true

mwigojonathanmark
Автор

I only found this out recently tbh (I read the code)

TheKodeToad
Автор

How about what happens when you delete from a particular index in an array list. Does it shift all the elements after it one position forward?

mrowox
Автор

Yes, , I've get the error unsoppotedmethod error

pguti
Автор

Some things just make you hate Java :D

aabhishek
join shbcf.ru