MongoDB's Java driver offers five document classes for working with BSON data. Document is recommended for most use cases as it provides flexibility and ease of use through a Map interface. BsonDocument offers type-safe BSON handling, RawBsonDocument provides immutable, lazy-parsed byte arrays for performance-critical
Sort: