Where can an Array be used?

An array can be used almost everywhere.

  • Instance or static field
  • Local or parameter variable
  • Method parameter
  • Method argument
  • Method return type
  • Return expression,
  • etc

Leave a Comment