what is Difference beetween Array and Hash Table.?

Answers were Sorted based on User's Feedback



what is Difference beetween Array and Hash Table.?..

Answer / 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

what is Difference beetween Array and Hash Table.?..

Answer / versha

In array we can acces it using index which we always to
rember when we want but in case of hashtable we can define
keys to that so that we can easily identify.

Is This Answer Correct ?    16 Yes 0 No

what is Difference beetween Array and Hash Table.?..

Answer / ranjana tyagi

In An array We make collection of same type of data.But in
hash table we can collect different type of objects.
2.In array we can access the element using index.we have to
access element one by one.If we do'nt remember index then
we cant acess the element.On the other hand in hash table
we can acess the element by using key.Also in hash table we
can take the key of the element a string also.

Is This Answer Correct ?    13 Yes 2 No

what is Difference beetween Array and Hash Table.?..

Answer / annu

araay is a collection of same data type in which we make
use of index,,
while in Hash table we make use of key and values...
And Hash table is a collection of different dataype

Is This Answer Correct ?    11 Yes 0 No

what is Difference beetween Array and Hash Table.?..

Answer / dinesh tiwari

Array is a collection of same datatype
while
Hash table is a colletion of different datatype.

Is This Answer Correct ?    10 Yes 0 No

what is Difference beetween Array and Hash Table.?..

Answer / vinod raj

An array is a mechanism which having similar data types or
collection of same data types and here we make use of index
ex:int[] myArray(100,0) here 0 is index.But in hash it is
collection of different data types and we can make use of
key and values

Is This Answer Correct ?    1 Yes 0 No

what is Difference beetween Array and Hash Table.?..

Answer / salman mohammed

1.) arrays can be access from initial position. for example if we want to search 100th element then it will starts from 0 and then it will checks one by one and then it will reaches to 99. So here it is some what reliable but it tooks a lot of time for searching.

2.) Whereas in hash we are having key and value. Based on this we can easily identify the element which we need with in a short period of time than arrays.
So it is much reliable than arrays.

But both are important to us. Because both are having some good properties which helps us in our programming.

Is This Answer Correct ?    1 Yes 0 No

what is Difference beetween Array and Hash Table.?..

Answer / 6 cg

arrray has 5 characters in its name
hash has 4 characters in its name

Is This Answer Correct ?    3 Yes 12 No

Post New Answer

More Dot Net AllOther Interview Questions

Explain How to improve the cache performance? : Dot net architecture

0 Answers  


How will you do windows authentication and what is the namespace?

0 Answers  


What is .net mobile utility controls. Explain with an example? : Microsoft dot net mobile

0 Answers  


what are the fundamental and common properties of .net controls?

0 Answers   Six Sigma,


2. I've a class Parent Class A and a Derived Class B. Here is a scenario. I've an instance of Class A as objA and an instance of Class B as objB. I can refer a child class variable as objB=objA, but cannot do objA=objB what is the reason?

2 Answers   247Customer,


Which Binding best suits where a WCF Service and the client application resides in the same machine?

2 Answers   Cap Gemini,


how to delete the record using data reader

0 Answers   PCS,


i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?

0 Answers  


wild card character in sql ?

2 Answers  


how do u achieve multilevel inheritance in .NET ?

9 Answers   Accenture, Ness Technologies, SteelWedge,


How can we integrate atlas with web services?

0 Answers  


What is an asssembly qualified name? Is it a filename? How is it different?

0 Answers  


Categories