p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   Java Basics (http://p2p.wrox.com/java-basics-199/)
-   -   is Array in java are Object? (http://p2p.wrox.com/java-basics/36917-array-java-object.html)

pandian January 7th, 2006 12:47 PM

is Array in java are Object?
 
is Array in java are Object?

int a[]=new int[10];

new will allocate memory. but int is a type not an Class ?

please help me.......

adarsh83 January 14th, 2006 05:50 AM

Yes all arrays in java (even primitive arrays) are implicit derivatives of Object class.

________
Adarsh

jetbrains January 15th, 2006 08:40 AM

Array is a objext.but int i=0;,i is not a object


http://www.wisesoft.biz/


Mr. Ram March 20th, 2006 10:21 PM

int a[]=new int[10]; -> Array of primitive datatypes (integers)


String str[] = new String[10]; -> Array of String Objects



All times are GMT -4. The time now is 10:08 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.