Someone here suggested using the latter. I'm a newbie in java, just wondering.. what's the difference between the two?
Thanks in advance.
Someone here suggested using the latter. I'm a newbie in java, just wondering.. what's the difference between the two?
Thanks in advance.
Calling System.exit(...)
terminates the JVM, stopping everything immediately.
Platform.exit()
just signals the JavaFX Toolkit to shut down, so the application instance stop()
.