REGISTER FREE to Receive Instant Job

Friday, 7 November 2014

Overloading in Java

Question:Why compiler provides a default constructor if a class doesn’t contain any constructor and why it doesn’t provide the default constructor when a class contains any parameterized constructor?

  • If a class contains multiple implementations of a method or constructor then method or constructor is said to be overloaded.
  • Implementations of overloaded method or constructor are differentiated either by varying the number of arguments or by varying their type of arguments.
  • Overloading is one of the means of implementing polymorphism.

1 comment:

Popular Posts

Powered by Blogger.

About Me

My photo

JobsAcid is a 'job search engine' to provide finding a job on the internet easier for the user. It has designed as huge selection of job offerings on the same search engine.