What is the differnce between Array and Hash Table?
Answers were Sorted based on User's Feedback
Answer / pramodgupta20
1.Array can store same type of data While Hash Table can
store different type of data.
2) Hash table store data as name,value pair. while in array
only value is store.
3) to access value from hash table, you need to pass name.
while in array, to access value , you need to pass index
number.
| Is This Answer Correct ? | 70 Yes | 1 No |
Answer / mohit jethva
Array can not contain diffrent type of object where in hash table you can store it.
| Is This Answer Correct ? | 15 Yes | 2 No |
Answer / ankit,abhishek
array is the collection of similar datatype while hashtable
is collection of different data type.
| Is This Answer Correct ? | 2 Yes | 0 No |
How do I get deterministic finalization in c#?
what is CSharp
What is for loop in c#?
What are the 3 different types of arrays?
What are the fundamental principles of oo programming?
Define an escape sequence, name few strings in escape sequence?
Consider the following pieces of C# code: a. interface I1 {/*......*/} interface I2 {/*......*/} struct Point : I1,I2 {/* ..... */} b. struct Book{ int bookId; struct Book b; } c. using M=Mystruct; struct MyStruct{ int id; } class MyClass{ static void Main(string[] args){ M m = new M(); } } d. struct Sample{ Sample ref x; } Which of the above are correct? Choose one of the options below. a, c and d are right a only right a and c are right d only wrong None of the listed options
What is the use of console readkey in c#?
What is array collection?
Method1() { int a=0, b=0, c=0; Monitor.Enter(this) c = 12; b = 3; a = c/b Moniter.Exit(this) } Method1() { int a=0, b=0, c=0; c = 12; b = 3; lock(this){ a = c/b } } Choose correct answer. a. Upon completion, Method1 and Method2 release the lock b. Upon Comletion, Method1 release the lcok and Method2 not. c. Upon Completion, Method2 release the lock and Method1 not. d. Upon Completion, neither Method1 or Method to release the lock.
WHAT IS THE EXACT USE OF INTERFACE(DONT TELL USE FOR MULTIPLE INHERITANCE)
Are private class-level variables inherited?
5 Answers HCL, Siebel Systems, Visual Soft,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)