Skip to main content

Posts

Showing posts from January, 2020

OOPs Concept For Automation

The java.util package contains all the classes and interfaces of Collection Framework.   Two Main root interfaces : Collection & Map  Parent Interface of Collection is Interable Iterable Interface  : -The Iterable interface is the root interface for all the collection classes and all the collection class implement the Iterable interface. Iterator< T > iterator(); Iterator interface provides the facility of iterating the elements in a forward direction only. // Returns true if the iteration has more elements public boolean hasNext(); // Returns the next element in the iteration // It throws NoSuchElementException if no more  // element present public Object next(); // Remove the next element in the iteration // This method can be called only once per call // to next() public void remove(); interface Collection< E > extends Iterable< E > interface Map< K , V > Collection : Root int...