There's nothing in the standard APIs to do this. Java programs can call specially prepared 'C' language code directly using the Java Native Interface, JNI. You could write some C functions and invoke them from Java. Does that work for you?
Oh ok.Thanks for your comments.Ya thru JNI it is working fine. I have checked. But for my codebase, it is better to use the Runtime.exec instead of JNI.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.