Arrays.asList | List.of | new Arraylist( ) | Difference | Examples | Java Shastra

preview_player
Показать описание
Different ways of Creating List and difference among them.
Рекомендации по теме
Комментарии
Автор

Very good thought on covering these differences in single video

bhaskar
Автор

What the difference (or when do we use)
List a = new Arraylist
and
ArrayList b = new Arraylist
?

reclee
Автор

Arraylist better for usage after your application

devireddyfavreddy
Автор

How ab

out thesse two ArrayList<String> list = new
list.add("hi");
List<String> ls = Arrays.asList("testing", "tessting2");
ls.add("hi");

list.add giving error bot not ls.add

sridharmurari