# Java Quick Start for Publishing and Subscribing to Events

In this quick start, you learn how to build a Pub/Sub API client in Java. The steps walk you through building the package, configuring the client, and running the client to publish and subscribe to events.

:::note
The quick start provides enough instructions and code snippets to build your own client. The examples are for learning purposes only. They aren’t intended for production use and haven’t undergone thorough functional and performance testing. Use them as a starting point.
:::

**In this section:**

- [Step 1: Define a Platform Event](/docs/platform/pub-sub-api/guide/qs-java-prereqs.md)
- [Step 2: Clone and Build the Client](/docs/platform/pub-sub-api/guide/qs-java-build-client.md)
- [Step 3: Configure Client Parameters](/docs/platform/pub-sub-api/guide/qs-java-parameters.md)
- [Step 4: Publish and Subscribe to Platform Events](/docs/platform/pub-sub-api/guide/qs-java-publish-subscribe.md)
- [Step 5: Subscribe to Change Events](/docs/platform/pub-sub-api/guide/qs-java-change-events.md)
