Explore Developer Center's New Chatbot! MongoDB AI Chatbot can be accessed at the top of your navigation to answer all your MongoDB questions.

Learn why MongoDB was selected as a leader in the 2024 Gartnerยฎ Magic Quadrantโ„ข
MongoDB Developer
MongoDB Developer Center
chevron-right
Developer Topics
chevron-right

Java

plus Follow
Sign in to follow topics
A high-level, class-based, object-oriented programming language. With Java Virtual Machine (JVM) Java applications are called WORA (Write Once Run Anywhere).

Featured

Quickstart

Java - Mapping POJOs

Learn how to use the native mapping of POJOs using the MongoDB Java Driver....
MongoDB thumbnail image
MongoDBJava

Mar 01, 2024 | 5 min read
Maxime Beugnet
Tutorial

Java Aggregation Expression Builders in MongoDB

MongoDB thumbnail image

Apr 02, 2024 | 11 min read
Quickstart

Getting Started with MongoDB and Java - CRUD Operations Tutorial

MongoDB thumbnail image

Mar 01, 2024 | 24 min read
Java Articles
All Java Articles
Article

Spring Data Unlocked: Performance Optimization Techniques With MongoDB

MongoDB thumbnail image

Dec 04, 2024 | 5 min read
Article

Java vs Kotlin: Different Syntax, Same Possibilities

MongoDB thumbnail image

Nov 25, 2024 | 5 min read
Article

Building a Quarkus Application to Perform MongoDB Vector Search

MongoDB thumbnail image

Oct 07, 2024 | 9 min read
All Java Articles
Java Quickstarts
All Java Quickstarts
Quickstart

Building Quarkus Application with MongoDB and Panache

java logo

Dec 03, 2024 | 5 min read
Quickstart

Introduction to MongoDB and Helidon

java logo

Nov 12, 2024 | 6 min read
Quickstart

How to Build a CRUD Application With MongoDB, Quarkus, and GraalVM

MongoDB thumbnail image

Aug 29, 2024 | 7 min read
Java Code Examples
All Java Code Examples
Code Example

Reactive Java Spring Boot with MongoDB

MongoDB thumbnail image

Apr 02, 2024 | 5 min read
Code Example

How to Implement Client-Side Field Level Encryption (CSFLE) in Java with Spring Data MongoDB

MongoDB thumbnail image

Jan 27, 2024 | 11 min read
Code Example

REST APIs with Java, Spring Boot, and MongoDB

MongoDB thumbnail image

Oct 25, 2023 | 4 min read
Java Tutorials
All Java Tutorials
Tutorial

Terraforming AI Workflows: RAG With MongoDB Atlas and Spring AI

MongoDB thumbnail image

Jan 29, 2025 | 11 min read
Tutorial

Building invincible applications with Temporal and MongoDB

MongoDB thumbnail image

Jan 27, 2025 | 26 min read
Tutorial

How To Build a Fraud Detection Model in Java Using Deeplearning4J

MongoDB thumbnail image

Jan 27, 2025 | 15 min read
Java Videos
All Java Videos
Video

Getting Started with Atlas Search and Java

MongoDB thumbnail image
Play Button

Sep 03, 2024 | 14 min
Video

Testing Java Applications with MongoDB Using TestContainers.

MongoDB thumbnail image
Play Button

Aug 26, 2024 | 7 min
Video

Sharding and Spring Data MongoDB: Scale Your Data

MongoDB thumbnail image
Play Button

Aug 15, 2024 | 8 min
All Java Content
search
  • Latestcheck
  • Highest Rated
Tutorial

Terraforming AI Workflows: RAG With MongoDB Atlas and Spring AI

Learn how to automate infrastructure management with HashiCorp Terraform and MongoDB Atlas. This tutorial covers setting up clusters, vector search, and building a Spring Boot RAG app with OpenAI embeddings for intelligent data retrieval and scalable cloud integration.
MongoDB thumbnail image

Jan 29, 2025
Tim Kelly
Tutorial

Building invincible applications with Temporal and MongoDB

Learn how Temporal simplifies building resilient distributed systems. This tutorial demonstrates Temporal's Durable Execution, automatic retries, and human-in-the-loop workflows through a hands-on example of a resilient money transfer application using Java and MongoDB.
MongoDB thumbnail image

Jan 27, 2025
Tom Wheeler (+1)
Tutorial

How To Build a Fraud Detection Model in Java Using Deeplearning4J

Learn how to combine neural networks and scalable data management to build a real-world fraud detection system in Java! This tutorial uses Deeplearning4J to train a neural network and MongoDB for efficient transaction data management. Follow along as we preprocess customer transaction data, train a model to spot fraud, and integrate MongoDB for scalability. Perfect for Java developers looking to dive into AI and build production-ready solutions.
MongoDB thumbnail image

Jan 27, 2025
Tim Kelly
Tutorial

Java Faceted Full-Text Search API using MongoDB Atlas Search

This is going to be a fun, practical tutorial demonstrating how to build a Java faceted full-text search API (like the ones powering sites like Amazon)! Weโ€™ll use an interesting dataset which showcases how you can effectively pair machine learning/AI-generated data with more traditional search to produce fast, cheap, repeatable, and intuitive search engines.
MongoDB thumbnail image

Jan 17, 2025
LT
Luke Thompson
Tutorial

Serverless Development with AWS Lambda and MongoDB Atlas Using Java

Learn how to build and deploy a serverless function to AWS Lambda that communicates with MongoDB using the Java programming language.
MongoDB thumbnail image

Jan 13, 2025
Nic Raboy
Tutorial

Understanding Embedded Types in MongoDB with Java and Helidon

MongoDB provides a flexible schema design, allowing data modeling patterns that differ significantly from traditional relational databases. With MongoDB, you model data specifically for your use cases rather than using a generic schema that attempts to cover all cases.
java logo

Jan 09, 2025
Otavio Santana
Article

Spring Data Unlocked: Performance Optimization Techniques With MongoDB

Discover the journey of mastering MongoDB with Spring Data! In Part 1, we explored the basics, including MongoTemplate vs. MongoRepository. Part 2 took us deeper into advanced queries and Spring's powerful features. Now, in Part 3, we'll focus on optimizing your application with strategies like read preferences and indexing
MongoDB thumbnail image

Dec 04, 2024
Ricardo Mello
Quickstart

Building Quarkus Application with MongoDB and Panache

In this tutorial, we will learn about building a Quarkus application with Panache and MongoDB. Panache is a Quarkus-specific library that simplifies the development of your Hibernate-based persistence layer.
java logo

Dec 03, 2024
Aasawari Sahasrabuddhe
Article

Java vs Kotlin: Different Syntax, Same Possibilities

In this article, weโ€™ll cover how to use some MongoDB features, and compare and contrast how they look and feel in Kotlin and Java.
MongoDB thumbnail image

Nov 25, 2024
AM
Ashni Mehta
Tutorial

Handle Time Series Data with MongoDB

Learn how MongoDB simplifies time series data management in this hands-on tutorial. Build a ship-tracking application to explore MongoDB's native time series collections, optimized for high write performance, geospatial queries, and horizontal scaling. Perfect for applications in finance, IoT, and logistics, this tutorial demonstrates how to efficiently manage and analyze time series data. Follow along with complete code examples and access the GitHub repository to get started today.
MongoDB thumbnail image

Nov 19, 2024
Tim Kelly