@BALAJI N Welcome to Microsoft Q&A Forum , Thank you for posting your query here
There is no folder concept in Blob storage ( since it's flat structure).
Java Blob upload sample: https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-java?tabs=powershell%2Cenvironment-variable-windows#upload-blobs-to-a-container
If its ADLS Gen 2 storage, then you have the concepts of Directory / folder, The sample code for this is here:
Java sample code upload to folder : https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-directory-file-acl-java#upload-a-file-to-a-directory
You can convert blob storage to ADLS Gen 2 storage if required.
Please let us know if you have any further queries. I’m happy to assist you further.
----------
Please do not forget to and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.