Suppose I've created an executable jar
from a code where I have used
System.out.println()
When we run the executable jar, there is no console. So, what happens to this line? How does java
handle this situation?
EDIT 01:
NOTE: The situation is when I don't use a console to run the jar
nor associate any console with it anyhow.
EDIT 02: Making things clearer:
I know that nothing will be printed anywhere as there is no console..! I want to know how java
handle this line in this case? Is this line omitted when generating the bytecode for a executable jar? Or is this line just overlooked when there is no console? Or anything...
java -jar foo.jar
from a console, then there is... – Shigella