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 01: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 06:50 AM

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


jetbrains January 15th, 2006 09:40 AM

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


Mr. Ram March 20th, 2006 11: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 12:32 AM.

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