Passing Interface Identifier parameter to ERC165Query from a java program

I am wiritng a java code that queries a ganache contract to see if it is erc165 token. How should i call the doesContractImplementInterface and pass the parameters from the java program?