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.
Copyright © 2021 Jogjafile Inc.
Calling
System.exit(...)terminates the JVM, stopping everything immediately.Platform.exit()just signals the JavaFX Toolkit to shut down, so the application instancestop().