Home » Java » java – Differences between com.mongodb.client.MongoClient and com.mongodb.MongoClient-Exceptionshub

java – Differences between com.mongodb.client.MongoClient and com.mongodb.MongoClient-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

I’m a bit new in MongoDB and I got confused with MongoClient classes as there are two in different packages (com.mongodb.client.MongoClient and com.mongodb.MongoClient). And what I have seen is that they have more or less the same purpose but I could be wrong.

What are the differences between both classes? Is one of them recommended over the other?

How to&Answers: