Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 7th, 2006, 12:47 PM
Authorized User
 
Join Date: Dec 2005
Location: , , .
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.......
Reply With Quote
  #2 (permalink)  
Old January 14th, 2006, 05:50 AM
Authorized User
 
Join Date: Dec 2005
Location: Bangalore, , India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

________
Adarsh
Reply With Quote
  #3 (permalink)  
Old January 15th, 2006, 08:40 AM
Authorized User
 
Join Date: Dec 2005
Location: , , .
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


http://www.wisesoft.biz/

Reply With Quote
  #4 (permalink)  
Old March 20th, 2006, 10:21 PM
Authorized User
 
Join Date: Mar 2006
Location: , , .
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dotnet array object in javascript ramesh.b ASP.NET 1.0 and 1.1 Basics 0 November 26th, 2007 06:27 AM
Array or Object?? netpicker9 Classic ASP Professional 1 June 3rd, 2007 06:43 PM
Accessing elements of an Array object abdulqadirpk VB How-To 1 April 2nd, 2007 11:13 AM
Java to XSL // Return Array go4java XSLT 3 June 29th, 2006 06:05 PM
Passing jagged array to com object nutrino VB How-To 0 January 27th, 2006 12:07 PM



All times are GMT -4. The time now is 03:24 AM.


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