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...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…