In this video, Let's learn about the Enumeration Interface In Java.
This is part 2 of Cursors in Java, make sure you watch Part 1 of this Java Tutorial to completely understand the important concepts of Cursors in Java.
Watch Here:
Part 1 - • Cursors in Java - Part 1 | Enumeration, It...
Cursors are used in Java to iterate or loop through a collection of objects.
The enumeration interface is one of the predefined interfaces, whose object is used for retrieving the data from collections framework variables ( like Stack, Vector, HashTable, etc.) in a forward direction only and not in the backward direction. This interface has been superseded by an iterator.
The Enumeration Interface defines the functions by which we can enumerate the elements in a collection of elements.
For new code, Enumeration is considered obsolete.
However, several methods of the legacy classes such as vectors and properties, several API classes, and application codes use this Enumeration interface.
Important Features:
Enumeration is Synchronized.
It does not support adding, removing, or replacing elements.
Elements of legacy Collections can be accessed in a forward direction using Enumeration.
Legacy classes have methods to work with enumeration and return Enumeration objects.
______________________________________________
Want to learn Coding? or want to learn Computer Languages like C, C++, Java, Python, HTML, PHP, etc. then make sure you Subscribe to @codingseekho
#codingseekho #coding #java #javaclass #javatutorial #javatutorialforbeginners #javacursors
#cursorsinjava #enumeration
На этой странице сайта вы можете посмотреть видео онлайн Cursors in Java - Part 2 | Enumeration Interface In Java | Java Tutorial | Vikas Singh длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь CoDing SeeKho 14 Апрель 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 461 раз и оно понравилось 7 зрителям. Приятного просмотра!