In this short we explain how not to answer in Java interview when questioned about What is the difference between ArrayList and LinkedList in Java? #shorts #javaprogramming
Generally candidates say ArrayList are made of arrays and LinkedList are made of Links.
Instead we should say that ArrayList is implemented as a resizable array, hence it allows to access elements randomly faster and traversal, but makes insertion and deletion of elements slower. while LinkedList is implemented as a doubly-linked list, providing fast insertion and deletion of elements, but slower random access and traversal. We have explained same in our video of Collections • Say Goodbye to Arrays: The Power of J... also with proof.
Tell in comment section What is your way of giving correct answer?
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Binge watch our various playlists: / scaleupindia
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Subscribe to our channel and press the bell icon to get regular updates:
https://www.youtube.com/@ScaleUpIndia...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
📌 Social Media
Creator LinkedIn: / abhishekvermaa10
Channel LinkedIn: / scale-up-india
For Business Enquiry, mail at [email protected]
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Copyright © 2023 ScaleUp India - All Rights Reserved