Java Interview Tips of the day - How to create Fixed length of ArrayList in Java
Click the below link to download the latest Billing System Source code.
https://pinepad.in/downloads/
More information about the Billing System Project. Watch this video
https://youtu.be/oj1_SVd2GUo
This video explains how to create a fixed array length ArrayList and immutable Arraylist. Following is a typical way of creating an Array list.
ArrayList list1 = new ArrayList();
List list2 = new ArrayList();
Following is another way of initializing ArrayList and it is not normal what we are doing. If you do like below. it is called a fixed-length ArrayList.
List list3 = Arrays.asList("Suresh","Kesavan","Stalin","Nizam");
This is called a Fixed length ArrayList. In this ArrayList, you can't add any new item. if you try to add an item, you will be getting an unsupported exception. This ArrayList also called immutable ArrayList.
Following is another way of initializing ArrayList. I do like below we can't add any item in the ArrayList.
List list1 = Collections.emptyList();
Please watch this full video for complete understanding.
I am developing a Billing System using Spring Boot. Already there are many many topics I have posted related to Billing System Project. Please subscribe to this channel to get all new updates about the Billing System and the first version of the Billing System Java code is absolutely free. It is available to download from here https://pinepad.in/downloads/ In the First version of the Billing System, I have implemented all kinds of Technical topics. Technical topics nothing but, integrating Spring boot logging framework, Spring Boot validation framework, and many more. Please follow the Billing System which I developing, it is very useful who wanted to get real-time project experience in Spring Boot. you can easily crack the interviews. Even I am ready to explain the technical topics if you have any doubts about the Project. You can find my contact. You can find my contact @ www.pinepad.in. Also, I have given my LinkedIn, Instagram, and FB profile in my Channel homepage banner (https://www.youtube.com/channel/UChj5CeuWaHIFr4RkXoG3iJA)
I have posted all technical related topics on the following site. Please check it out
https://pinepad.in/blog/
If you want to only Billing-System-related Technical Topics, please go to the following link.
https://pinepad.in/category/java/billing-system/
Please follow me on https://suresh-stalin.medium.com/. The reason I am asking is, if I post any Technical article or billing System-related Article you will be getting a notification.
Click the below link to download the latest Billing System code.
https://pinepad.in/downloads/
All Billing System-related videos update in the following post
https://pinepad.in/java/billing-system/billing-system-using-spring-boot-all-youtube-video-links-updated-here/
#springbootforbeginners #springbootintroduction,#springboottutorial #springbootbasics
#fixedlengtharraylist #corejavaarraylist #corejavaexamples #corejavasamples #collectionframewor
Видео Java Interview Tips of the day - How to create Fixed length of ArrayList in Java автора Языки программирования: основы
Видео Java Interview Tips of the day - How to create Fixed length of ArrayList in Java автора Языки программирования: основы
Информация
5 декабря 2023 г. 15:26:36
00:05:17
Похожие видео