• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Terminate a Java program.

 
Gorakshanath Pandey
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple Question..@ Is there a way to terminate a java program using
exit() or something on those line?
Thanking in anticipation...
 
Dmitry Melnik
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean, something like this?
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html# exit(int)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a JDBC question, so off to the Java in General(beginner) forum.
 
Dani Atrei
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just write System.exit(0);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic