ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
which is faster ArraytList Or Collection ? how?
hows the Hashing works internally ?
 Question Submitted By :: Rakesh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: which is faster ArraytList Or Collection ? how? hows the Hashing works internally ?
Answer
# 1
Arraylist itself is a part of collection. 
From a .NET perspective, a collection could be defined as 
an object that implements one or more of the 
System.Collections.ICollection, 
System.Collections.IDictionary, and 
System.Collections.IList interfaces.
 
This definition leads to my classification of the "built-
in" collections found in the System.Collections namespace 
into three broad categories:
Ordered collections: Collections that implement only the 
ICollection interface are usually distinguished by the fact 
that insertion order controls the order in which objects 
may be retrieved from the collection. The 
System.Collections.Stack and System.Collections.Queue 
classes are both examples of ICollection collections.
Indexed collections: IList-implementing collections are 
distinguished by the fact that their contents can be 
retrieved via a zero-based numeric index, like an array. 
The System.Collections.ArrayList object is one example of 
an indexed collection.
Keyed collections: Collections implementing the IDictionary 
interface contain items that can be retrieved by an 
associated key value of some kind. The contents of 
IDictionary collections are also usually sorted in some 
fashion based on the key valu and can be retrieved in 
sorted order by enumeration. The 
System.Collections.HashTable class implements the 
IDictionary interface.

ArrayList
 
The System.Collections.ArrayList class, which implements 
only IList, could best be described as a hybrid of a normal 
array and a collection. ArrayLists hold items in the order 
they were added. Items are assigned an index identifier and 
can be retrieved in any order via their associated index 
number. The ArrayList grows as new items are added to it, 
which makes it more flexible than a normal array. However, 
an ArrayList has more overhead than a traditional array and 
is not strongly typed, accepting anything that can be cast 
to System.Object (in other words, everything).
 
Is This Answer Correct ?    2 Yes 0 No
Ashutosh Tripathi
 
  Re: which is faster ArraytList Or Collection ? how? hows the Hashing works internally ?
Answer
# 2
l
 
Is This Answer Correct ?    0 Yes 0 No
Bathirasamy
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Briefly describe different techniques for ASP.NET State Management? Syntax-Softtech2
how can i insert array values and retreive in asp.net TCS3
How to Open any web page by clicking any Any ASPControl like (Checkbox,radio button or Button) without calling its event and without going to Siverside code? LG-Soft1
You have been given the task of designing a web services to expose the data that is stored in a database on the server. In order to successfully build the web services, you need to import some namespaces. What is the minimum namespace you need to import? a) System.Web b) System.WebServices c) System.Web.Services d) System.Web.ServiceModel Syntax-Softtech2
what is Master pages in asp.net? what is the advantages and disadvantages?  2
What is the T-SQL equivalent of IIF (immediate if/ternary operator) function of other programming languages? Syntax-Softtech1
when using windows API in .net then it is managed code or Unmanaged code?  1
When is the ViewState available during the page processing cycle ?  3
About SOAP ? Cognizent2
Where can we set the specific variables for a application and Session objects ?  2
What is caching and types of caching ? Infosys2
What is boxing and how it is done internally? Microsoft1
what is NET Framework ? TCS4
When working with ASP.Net server controls, it is important to use the right event handlers to capture the event for the application to function properly. What event would you use to capture the selection of a new item in a DropDownList control? a) The Click event. b) The SelectionChanged event. c) The SelectionIndexChanged event. d) The ChangedSelection event. Syntax-Softtech4
When would you not use the oleDbConnection object? a) To connect to an SQL 7.0 database. b) To connect to a DB/2 database. c) To connect to an Access database. d) To connect to an SQL 6.5 database. Syntax-Softtech5
What is Assembly? Inspira-Technologies2
What are different transaction options? Astadia1
What are the different authentication modes in the .NET environment?  2
What does this do? sn -t foo.dll  2
What is Master Page in Asp.net?  5
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com