what is Difference beetween Array and Hash Table.?

Answer Posted / pkl

An ArrayList behaves just like

an array, except that it will dynamically expand and
contract when you

add/remove elements to it. A HashTable is useful when you
want to

lookup objects indexed by a 'key' value. It also dynamically

expands and contracts but doesn't impose an order on the
elements like

an array does. Put a different way: you index elements in an

ArrayList with a numeric index, you index elements in a
HashTable with

a key. Such a key is often a string.

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a service contract, operation contract and data contract?

709


What is difference between .net and visual studio?

716


What is a clickonce application?

688


Explain .net mobile events? : Microsoft dot net mobile

692


Explain domestic architecture artifacts? : .NET Architecture

711


State the different levels of exceptional safety?

752


Explain different pipelining hazards? : Dot net architecture

666


How to prevent my .NET DLL to be decompiled?

775


Explain about the base class library provided by microsoft.net?

729


Explain the components required to develop mobile applications with .net mobile? : Microsoft dot net mobile

663


What is the procedure on hardware that converts the ascii value to binary? : .NET Architecture

725


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure. : Dot net architecture

732


Explain pipelining? : Dot net architecture

755


So what exactly is the configuration file for then?

721


How cache coherency is eliminated? : Dot net architecture

677