1.

Which of these return type of hasNext() method of an iterator?(a) Integer(b) Double(c) Boolean(d) Collections ObjectI had been asked this question in my homework.Enquiry is from Iterators in portion java.util – The Collections Framework of Java

Answer»

Right CHOICE is (C) Boolean

For explanation: hasNext() RETURNS boolean values true or false.



Discussion

No Comment Found

Related InterviewSolutions