It is not advised to call System.exit(0) in Java.
In server like tomcat there could be multiple applications running, using same JVM.
If any of those applications call System.exit(int status) accidentally then JVM will exit. Other apps will also stop.
So to avoid that you can do
1. Run one app per JVM – Good Choice
2. Use Security Manager and prevent JVM from exiting by this call.
Aly Chiman
Aly Chiman is a Blogger & Reporter at AlyChiTech.com which covers a wide variety of topics from local news from digital world fashion and beauty . AlyChiTech covers the top notch content from the around the world covering a wide variety of topics. Aly is currently studying BS Mass Communication at University.