---
schema_version: "1"
id: 389717af25b0884e6c1c95217d0409d18dd42cacf8c9509e29516b71a054adc3
title: Java Module Examples
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/java-module/latest/java-module-examples.md
canonical_url: https://docs.mulesoft.com/java-module/latest/java-module-examples
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2a21b016c829577989a688cc61a5f48c9ed07308bf51f711e7c760a9c0c2a394
description: MuleSoft Documentation Site
release: "2.0"
latest: true
---
---
product: Java Module
version: 2.0
is-latest-version: true
---

# Java Module Examples

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

To fully benefit from using Java module, see the following examples of configuring the module
operations:

- [Create an Instance of a Class](https://docs.mulesoft.com/java-module/latest/java-create-instance)  
  Configure the **New** operation to create an instance of a Java class.

- [Invoke Java Methods](https://docs.mulesoft.com/java-module/latest/java-invoke-method)  
  Configure the **Invoke** and **Invoke static** operations to call Java methods.

- [Transform Arguments](https://docs.mulesoft.com/java-module/latest/java-argument-transformation)  
  Configure Java module to transform the arguments given to a Java invocation even if they don’t
  exactly match the type expected by the Java method.

- [Test for an Instance of a Class](https://docs.mulesoft.com/java-module/latest/java-instanceof)  
  Configure the **Validate type** operation to operation that tests whether an object is an instance
  of a class.

- [Work with Throwables](https://docs.mulesoft.com/java-module/latest/java-throwable)  
  Configure Java module to use DataWeave functions for throwable instances.

## See Also

- [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)

- [Salesforce Help](https://help.salesforce.com)
