API Writer

Exploring API documentation

Constructors

legosJava constructors remind me of legos. Using the right shape, size and color you can create some fun and useful objects to play with. When you invoke a method, the arguments used must match the declaration’s parameters in type and order. 

  •  Parameters refers to the list of variables in a method declaration.
  • Arguments are the actual values that are passed in when the method is invoked.

A constructor may call other constructors of the same class

November 30, 2006 Posted by | SCJP | Leave a comment