Results 1 to 4 of 4
Thread: System.exit(0);
- 12-12-2012, 02:26 PM #1
Student
- Join Date
- Dec 2012
- Posts
- 1
- Rep Power
- 0
- 12-12-2012, 02:44 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,440
- Rep Power
- 16
Re: System.exit(0);
What did Google tell you?
Honestly both those questions are answered there.Please do not ask for code as refusal often offends.
- 12-12-2012, 03:53 PM #3
Re: System.exit(0);
Thread moved. Please don't post beginner questions in the Advanced Java section.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 12-12-2012, 04:17 PM #4
Re: System.exit(0);
The 0 is the exit code. There is a long history of exit codes and what they mean, generally, 0 is a normal (everything went fine) code, and anything else is an error code (usually 1).
Math.random uses an instance of Random to do what it does - but using java.util.Random directly gives you access to a lot more functionality.
Similar Threads
-
Exit System
By jboy in forum New To JavaReplies: 5Last Post: 09-14-2009, 08:27 AM -
Avoiding system.exit()
By swati.jyoti in forum New To JavaReplies: 5Last Post: 07-01-2009, 10:17 AM -
System.exit 0 or 1?
By antgaudi in forum New To JavaReplies: 3Last Post: 11-13-2008, 06:33 PM -
System.exit() in catch block.
By new_2_java in forum Advanced JavaReplies: 8Last Post: 06-24-2008, 03:45 PM -
system.exit(..)
By ramakanta.majhi in forum New To JavaReplies: 2Last Post: 06-14-2008, 01:28 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks