Is it possible to compile and run a java file in bash without saving the compiled file?
I'm using the command javac File.java && java File. It works but it creates a File.class file.
Can I somehow pipe the compiled file to the java command? I have tried javac File.java | java but it does not work.