@PalnatiVenkataS-5334 Welcome to Q&A forum!
You can use HttpsBatchMessage class which builds a batched IoT Hub request body as a JSON array and sent to IoT Hub. The batched message has a maximum size of 256 kb.
As mentioned, Device-to-cloud messages can be at most 256 KB, and can be grouped in batches to optimize sends. Batches can be at most 256 KB.
IoT Hub only supports batch send over AMQP and HTTPS only at the moment. The SDK supports batch send over HTTP. * Batch send over AMQP and AMQP-WS, and add system properties on D2C messages are in progress.
See Microsoft Azure IoT SDKs for Java to understand more about Azure IoT SDKs for Java.