Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Web publishing business discussion > YOUR PERFORMANCE: Website Promotion, Marketing and Growth > Search Engine Marketing & Optimization
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-10-2016, 05:23 AM   #1
beingchinmay
Registered User
 
Join Date: Jun 2015
Posts: 246
Arrow Difference between array and list?

* An array is a collection of homogenous element whereas a list is a collection of heterogeneous element.
* Memory allocated is static and continuous whereas list are random and dynamic









Growth On Height | Step Up Height Increaser
beingchinmay is offline   Reply With Quote
Old 03-15-2016, 12:57 AM   #2
daviddakarai
Registered User
 
Join Date: Dec 2014
Posts: 299
Default

Array is collection of homogeneous elements.
For Array memory allocated is static and continuous.
Array: User need not have to keep in track of next memory allocation.

List is collection of heterogeneous elements.
For List memory allocated is dynamic and Random.
List: User has to keep in Track of next location where memory is allocated.
daviddakarai is offline   Reply With Quote
Old 03-17-2016, 07:15 AM   #3
Fadia Sheetal
Registered User
 
Join Date: May 2015
Location: Mumbai
Posts: 141
Default

* An array is contiguous memory that is addressable by integer index.
* A list (or linked list) is a sequence of nodes, linked by a pointer. The canonical example is a CONS list in Lisp or any functional language, or a singly linked list in imperative languages.
Fadia Sheetal is offline   Reply With Quote
Old 03-18-2016, 04:12 AM   #4
carlhardy
Registered User
 
Join Date: Apr 2015
Posts: 69
Default

An array is contiguous memory that is addressable by integer index.

A list (or linked list) is a sequence of nodes, linked by a pointer. The canonical example is a CONS list in Lisp or any functional language, or a singly linked list in imperative languages.

Hospitals Management b2b portal is a procurement platform for key decision makers to expand business opportunities globally.

Last edited by carlhardy; 03-18-2016 at 04:15 AM. Reason: spelling
carlhardy is offline   Reply With Quote
Old 03-20-2016, 08:27 PM   #5
rosario1990
Registered User
 
Join Date: Feb 2015
Location: Dhaka, Bangladesh
Posts: 147
Default

Thank you all guys I got to know about Array and a list from here.
rosario1990 is offline   Reply With Quote
Old 06-06-2016, 01:51 AM   #6
Joomladev
Registered User
 
Joomladev's Avatar
 
Join Date: Jan 2015
Location: delhi
Posts: 29
Default

An "Array" is one consecutive memory area that contains one element after the other in some "packed" way (without holes). Each element is accessed by index in this memory chunk, where the index typically starts with 0 and ends with (n-1) where n is the number if elements in the array. If you know the size of each element you can easily calculate the memory address of any element if you know the memory address of the start of the array memory block.

Lists and linked lists are more complicated. A list may also hold a number of elements but the implementation detail on how this is done internally are basically unknow and typically irrelevant.
Joomladev is offline   Reply With Quote
Old 06-21-2016, 06:06 AM   #7
Karen Jain
Registered User
 
Join Date: Jul 2015
Location: Bangalore
Posts: 102
Default

Array allocates memory statically that is continuous too while list allocates memory dynamically.
Karen Jain is offline   Reply With Quote
Old 07-05-2016, 03:28 AM   #8
Adler Stewart
Registered User
 
Join Date: Jul 2015
Posts: 47
Default

An "Array" is one consecutive memory area that contains one element after the other in some "packed" way (without holes). Each element is accessed by index in this memory chunk, where the index typically starts with 0 and ends with (n-1) where n is the number if elements in the array.
Adler Stewart is offline   Reply With Quote
Old 07-12-2016, 02:24 AM   #9
KelvinSmith
Registered User
 
Join Date: Dec 2014
Location: UK
Posts: 3
Default

  1. Array is a fixed length data structure while ArrayList is variable length collection class.
  2. ArrayList resize itself when gets full depending upon capacity & load factor unlike Array. ArrayList resizing operation slow down overall performance.
KelvinSmith is offline   Reply With Quote
Old 11-17-2020, 06:19 AM   #10
RH-Calvin
Registered User
 
Join Date: Jun 2013
Location: Forum
Posts: 150
Default

An array is a data structure generally consisting of sequential memory storing a collection of objects. List is an interface in Java, which means that it may have multiple implementations.
RH-Calvin is offline   Reply With Quote
Reply

Bookmarks

Tags
asp, php developer

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help finding match array in hash! anthonyjames Web Development - Programming / Coding 0 12-18-2002 01:36 AM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 06:18 PM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.