Hello @Akhil ,
I understand you want to build an Azure IoT Edge module using the Java language.
If you have added the Azure IoT Edge extension to Visual Studio Code, you are able to create this sample module in various programming languages, including Java:
Check out this tutorial for more information about creating a module.
Azure IoT Edge modules are in fact Docker containers. Because these custom modules, using a VS Code template, support Azure IoT Edge SDKs, each module can communicate with the default available edgeHub module.
This edheHub module stays in contact with the Azure IoT Hub a acts as a message broker.
There is a routing mechanism in place to pass messages on from module to module (see inputs and outputs).
If you add support for one or more inputs and outputs, you can pick up messages and send them to other modules and/or the cloud.