Docs Menu

MongoDB Java Driver

Welcome to the MongoDB Java driver documentation. This documentation is for the synchronous driver. If you are working with asynchronous stream processing and reactive streams, we recommend the Reactive Streams Driver.

The official MongoDB Java driver lets you connect your Java applications to MongoDB and work with your data. On this page, you can find descriptions of each section of the driver documentation and where to go to learn more about the Java driver.

This Quick Start section is where you can establish a connection to MongoDB Atlas and begin working with data.

The Usage Examples section is where you can find runnable code snippets and high-level explanations for common methods.

The Fundamentals section explains how to perform the following tasks using the Java driver:

The MongoDB Java driver API documentation contains detailed information about classes and methods in the MongoDB Java driver. The driver contains of the following libraries organized by functionality. See the following table for descriptions of each library and links to the API documentation.

Base BSON classes
Shared core classes
Modern API
Legacy API

The Frequently Asked Questions (FAQ) section provides answers to commonly asked questions about the MongoDB Java Driver.

The Issues & Help section explains how to report bugs, contribute to the driver, and find additional resources for asking questions and receiving help.

The Compatibility section shows compatibility charts with JVM and MongoDB server versions.

The What's New section lists new features and changes in each version.

Visit the Developer Hub and MongoDB University to learn more about the MongoDB Java driver.

The Developer Hub provides tutorials and social engagement for developers.

To learn how to use MongoDB features with the Java driver, see the How To's and Articles page.

To ask questions and engage in discussions with fellow developers using the Java Driver, see the forums page.

MongoDB University provides free courses to teach everyone how to use MongoDB.

M220J Course Hero

M220J: MongoDB for Java Developers

Learn the essentials of Java application development with MongoDB.

Give Feedback
© 2021 MongoDB, Inc.


  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.