Error comes at compilation time, Exception comes at run time.
final keyword is used in three ways
final int i=10;
This represents i is constant we can't change the value of i;
If you used in front...
Iterator - Interface to iterate over collectionsEnumertion - Type of collecton of objectsException - Occurs when some logically wrong happens in program. Can be catchedError - Not in hands of develope...
Between two Enumeration is older and its there from jdk 1.0 while iterator was introduced later. The functionality of Enumeration interface is duplicated by the Iterator interface. Iterator has a rem...
The functionality of this interface is duplicated by the Iterator interface. In addition, Iterator adds an optional remove operation, and has shorter method names. New implementations should consider using Iterator in preference to Enumeration.