You are currently viewing an older version of the Java driver documentation.
For the most recent version of the reference documentation, see our MongoDB Java Driver documentation site.

MongoDB Java Driver Documentation

Welcome to the MongoDB Java driver documentation hub for the 3.11 driver release.

What’s New in 3.11

For key new features of 3.11, see What’s New.


To upgrade, refer to the Upgrade Considerations documentation.

MongoDB Driver

For the synchronous MongoDB Driver, see MongoDB Driver section.

MongoDB Async Driver

For the callback-based asynchronous MongoDB Async Driver, see MongoDB Async Driver section. Note that this driver has been deprecated in favor of the Reactive Streams Java Driver.

BSON Library

The BSON library comprehensively supports the BSON spec, the data storage and network transfer format that MongoDB uses for ‚Äúdocuments”. The reference guide provides information about working with Documents, how to use Codecs and Extended JSON support.