What are differences between Array list and Hash table?
Ans: 1) Hash table store data as name, value pair. While in array only value is store.
2) To access value from hash table, you need to pass name. While in array, to access value, you need to pass index number.
3)
you can store different type of data in hash table, say int, string
etc. while in array you can store only similar type of data.
What are differences between system.stringbuilder and system.string?
The
main difference is system.string is immutable and system.stringbuilder
is a mutable. Append keyword is used in string builder but not in
system.string.
Immutable
means once we created we cannot modified. Suppose if we want give new
value to old value simply it will discarded the old value and it will
create new instance in memory to hold the new value.