0

hasNext() : hasNext() method returns true if iterator have more elements.

next() : next() method returns the next element and also moves cursor pointer to the next element.

Use of hasNext() in ServiceNow
Expert Asked question July 17, 2023