wood burning stoves 2.0*
The moose likes Java in General and the fly likes Internal process of Array Creation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Internal process of Array Creation" Watch "Internal process of Array Creation" New topic

Internal process of Array Creation

Bhagirathi Mallick

Joined: Jul 21, 2011
Posts: 26
Actually i want to know in which package
the class "[I" , "int" and "[java.lang.String " is present
and also how it is created

how it is created by the compiler.
please some one explain me.
thanks in advance...
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13868

Those names such as "[I" and "[java.lang.String" are the internal names of "int[]" and "String[]". Paragraph 4.3 of the Java Virtual Machine Specification explains how these names work. For example, "[" means it's an array and "I" means "int".

The classes for arrays are things that are built-in into the compiler. You will not find a Java source file or *.class file anywhere for those classes.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Winston Gutkowski

Joined: Mar 17, 2011
Posts: 7029


I broke up the long line in your code. Please don't put very long lines inside code tags (I suggest you give the UseCodeTags page another read).



Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
I agree. Here's the link: http://aspose.com/file-tools
subject: Internal process of Array Creation
Similar Threads
Problem with BeanUtils
How can I get a run() method to return a string variable, when run() method is required to be void ?
Getting the class name without the full package