Docs Menu

MongoDB Java Drivericons/link.png

Welcome to the official MongoDB Java driver documentation.

Connect your Java applications to MongoDB and work with your data using the Java driver. This documentation is for the synchronous Java driver. The synchronous Java driver runs your operations on MongoDB sequentially rather than in parallel. We recommend using the synchronous driver with your application.

If you're working with asynchronous stream processing and reactive streams, use the official MongoDB Reactive Streams driver instead.

On this page, you can read descriptions of each section of the documentation.

Learn how to establish a connection to MongoDB Atlas and begin working with data in the Quick Start section.

For fully runnable code snippets and explanations for common methods, see the Usage Examples section.

Learn how to perform the following tasks using the Java driver in the Fundamentals section:

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

Library
Description
Base BSON classes
Shared core classes
Modern API
Legacy API

For answers to commonly asked questions about the MongoDB Java Driver, see the Frequently Asked Questions (FAQ) section.

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

For the compatibility charts that show the recommended Java Driver version for each MongoDB Server version, see the Compatibility section.

For a list of new features and changes in each version, see the What's New section.

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
Learn the essentials of Java application development with MongoDB.
Give Feedback
MongoDB logo
© 2021 MongoDB, Inc.

About

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