System.exit(0) does the same thing as System.exit(1) It is a command that stops the entire JVM Unless you are calling the program with a bat file and do something with the return value of the program, it makes no difference which one you use.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
The integer is returned as an exit code. The convention is to return 0 i.e. System.exit(0) if the application terminated correctly (without any errors). If you want to return any other number for reporting errors/exeptions to outside the program you can do this with something like...
System.exit(<some integer> is a function call like anything else. you're saying "Shut down the JVM, and pass the integer value to the OS.
by using different values, you can signal WHY the JVM was shut down. The values have no inherent meaning, but customarily 0 means "everything was just fine". any other value means something bad happened, but that's for you to determine when you write the code.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
As I explained to you (nagaraju) before, please keep unrelated questions in separate topics.
I am little bit dout on >>> operator plz clarify my dout
Create a new topic for the above question. And say what exactly you do not understand about the ">>>" shifting operator. I you have read something about the operator, and you do not understand it, then quote what you have read.