How to call OCR free api from java code

You can use the PostMan code export feature or start with this OCR API Java sample code.