

The AWS SDK for Java 1.x reached end-of-support on December 31, 2025. We recommend that you migrate to the [AWS SDK for Java 2.x](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/home.html) to continue receiving new features, availability improvements, and security updates.

# Amazon SQS Examples Using the AWS SDK for Java
<a name="examples-sqs"></a>

This section provides examples of programming [Amazon SQS](https://aws.amazon.com/sqs/) using the [AWS SDK for Java](https://aws.amazon.com/sdk-for-java/).

**Note**  
The examples include only the code needed to demonstrate each technique. The [complete example code is available on GitHub](https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/java). From there, you can download a single source file or clone the repository locally to get all the examples to build and run.

**Topics**
+ [Working with Amazon SQS Message Queues](examples-sqs-message-queues.md)
+ [Sending, Receiving, and Deleting Amazon SQS Messages](examples-sqs-messages.md)
+ [Enabling Long Polling for Amazon SQS Message Queues](examples-sqs-long-polling.md)
+ [Setting Visibility Timeout in Amazon SQS](examples-sqs-visibility-timeout.md)
+ [Using Dead Letter Queues in Amazon SQS](examples-sqs-dead-letter-queues.md)