Re: How an Array Class is Used in Javascript?
I don't know much about the Array class that is used in JavaScript, but I know about an array that are used in Java. It would be helpful about the information of array class used in Java, so I am giving more details about it. In Java, the ArrayList class extends AbstractList and implements the List interface. Also the arrays are of fixed length in Java which means you cannot grow or shrink the arrays later on. And suppose if you want to do the changes in array then you would have to use the ArrayList which is a collections framework. An ArrayList is a variable-length array of object references. The following are the constructors of an ArrayList :
- ArrayList( )
- ArrayList(Collection c)
- ArrayList(int capacity)
I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.
Bookmarks