Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jaxson Brown   on Jun 06 In Java Category.

  
Question Answered By: Clinton Edwards   on Jun 06

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: 

 
 
Didn't find what you were looking for? Find more on Constructors do not have return type Or get search suggestion and latest updates.


Tagged: