What is an Anonymous array

Anonymous array: It is an array formed without an identifier. The anonymous array is generally formed as an actual argument, for example:

// generate 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 might also be returned as a method outcome.

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.