How to Execute java file in System?

Hello Ma’am,

Greeting for the day !

How can we create java EXE file and how to execute it in system ?
Can we create a folder or text file in system by using Java code ?
Is there any code available in java to create folder or file in System ?

Thank you

You try on online compiler.

Sorry Madam, I am not satisfied with your reply. I want to create a folder in my computer by using java such as i use MS Dos.

Is it possible to do this ?