Is Object constructor called when creating an array in Java?

Posted by Peter Štibraný on Stack Overflow See other posts from Stack Overflow or by Peter Štibraný
Published on 2009-01-23T22:37:21Z Indexed on 2010/05/08 17:08 UTC
Read the original article Hit count: 198

In Java, an array IS AN Object. My question is... is an Object constructor called when new arrays is being created? We would like to use this fact to instrument Object constructor with some extra bytecode which checks length of array being constructed. Would that work?

© Stack Overflow or respective owner

Related posts about java

Related posts about object