---
description: >
  How to use the H2 in-memory database for local development and testing in CAP Java.
---

# Using H2 for Development in CAP Java

> [!NOTE]
> H2 is supported for CAP Java only.

For local development and testing, CAP Java supports the [H2](https://www.h2database.com/) database, which can be configured to run in-memory.

Learn more about the [features and limitations of using CAP with H2.](../../java/cqn-services/persistence-services#h2)

There are various options of how to configure the [H2 database for local development and testing in CAP Java.](../../java/developing-applications/testing#setup--configuration)
