This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Array constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Array constructor" Watch "Array constructor" New topic
Author

Array constructor

Kirill Yunussov
Greenhorn

Joined: Jan 22, 2013
Posts: 2

Hi,

Exactly what code runs when you initialize an array as follows? I tried to see in debug but it doesn't go into the array's constructor. Just curious what it looks like.






Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14114
    
  16

Welcome to the Ranch.

Arrays are a built-in feature of Java. There's really no code to jump into - in fact, there's a single bytecode instruction for creating an array (the bytecode instruction "anewarray").

There is no constructor for arrays.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Kirill Yunussov
Greenhorn

Joined: Jan 22, 2013
Posts: 2

great, thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Array constructor