Which of the following method returns true if the cursor has documents?
(a) hasMethod()
(b) hasNext()
(c) hasDoc()
(d) all of the mentioned
The question was asked at a job interview.
My question comes from Getting Started with MongoDB topic in portion MongoDB CRUD Concepts and Operation of MongoDB