anonymous array

1 topic · 1 source

Technology› Programming

Java

An array created without an identifier. An anonymous array is usually created as an actual argument, for instance

 // Create an anonymous array of integers. YearlyRainfall y2k = new YearlyRainfall( new int[]{ 10,10,8,8,6,4,4,0,4,4,7,10,}); 
An anonymous array may also be returned as a method result.

Cite this definition

APA
MLA
Chicago