Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exit java statement

 
Mike Shn
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
--------------------------------------------------------------------------------
Hello
I know that C++ uses the exit(0) and exit(-1) statement. Does Java uses something similar?
Thanks a lot
 
kim jungil
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mike Shn:

System.exit(0);
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amazing you got the same answer in this forum as the beginner forum
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic