• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internal process of Array Creation

 
Bhagirathi Mallick
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15495
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Winston Gutkowski
Bartender
Pie
Posts: 10527
64
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bhagirathi,

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).

Thanks

Winston
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic