Who Knows All.. ?

If the answer is No one. Then this blog is for U. I'm going to put all the things I know in Java

Explain about Array variable?

                 An array is like a tray of cups.Every element in an array is just a variable. In other words,one of the eight primitive variable types or a reference variable. Anything you put in a variable of that type. So, in an int(int[]) array you can hold an int. In dog array(Dog[]) each element can hold a Dog reference variable.Remember a reference variable just holds a reference not the object itself.

            The key thing about array is that, “Arrays are always objects, whether they’re declared to hold object references or primitives”. In other words, the array itself is never a primitive. Regardless of what the what the array holds, the array itself is always an object.

Arrays are great when you just want a quick, ordered efficient  list of things.Arrays give you fast random access by letting you use an index position to get to any element in the array. 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on November 3, 2011 by in Array, Arrays.

Browse blog by date

November 2011
M T W T F S S
« Oct   Dec »
 123456
78910111213
14151617181920
21222324252627
282930  

Blog Stats

  • 1,105 hits
%d bloggers like this: