Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ella Campbell   on Jan 01 In Java Category.

  
Question Answered By: Aaron Evans   on Jan 01

1) constructors  are not methods. They're just
constructors. They've the form of a method  without
return. They're invoked in automaticaly in class
instantiation, but can not be executed explicitly.

2) An application does not return  anything to the
system, buy you can return an exit code using the
method System.exit(int n) . Any n != 0 implies that
the exit was with errors.

Share: