Question
Which of the following method returns true if the cursor has documents ?
Answer: Option B
Was this answer helpful ?
hasNext() returns true if the cursor returned by the db.collection.find() query can iterate further to return more documents.
Was this answer helpful ?
Submit Solution