CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.

Sponsored Links

Interview Questions
Our Services

INTERVIEW QUESTIONS C++ ARRAYS, STRINGS, POINTERS AND REFERENCES IN C++ DETAILS
Question :
Difference between "vector" and "array"?


Category Arrays, Strings, Pointers and References in C++ Interview Questions
Rating (3.1) By 40 users
Added on 7/19/2011
Views 2686
Rate it!


Answers:

Source: CoolInterview.com

Vector and ArrayList are very similar. Both of them represent a 'growable array', where you access to the elements in it through an index.<br>ArrayList it's part of the Java Collection Framework, and has been added with version 1.2, while Vector it's an object that is present since the first version of the JDK. Vector, anyway, has been retrofitted to implement the List interface.<br>The main difference is that Vector it's a synchronized object, while ArrayList it's not.<br>While the iterator that are returned by both classes are fail-fast (they cleanly thrown a ConcurrentModificationException when the orignal object has been modified), the Enumeration returned by Vector are not.<br><br>Unless you have strong reason to use a Vector, the suggestion is to use the ArrayList<br><br> <br>
Source: CoolInterview.com



If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification Enter the above shown code: *
    Inform me about updated answers to this question

    Related Questions
    View Answer
    Explain "passing by value", "passing by pointer" and "passing by reference"

    View Answer
    What is "strstream??

    View Answer
    why array index starts from 0[zero] only?

    View Answer
    Why Pointers are not used in C Language. What are the main differences between C and C++

    View Answer
    How can double dimensional arrays be dynamically initialized in C++?




    View Answer
    Why always array starts with index 0?

    View Answer
    Can you allocate the memory using malloc() in C and deallocate the same memory using free() in c++

    View Answer
    What is a memory leak? How can we avoid it?
    View Answer
    Can you store multiple data types in System.Array?
    View Answer
    What is the difference between the System.Array.CopyTo() and System.Array.Clone()?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Arrays, Strings, Pointers and References in C++ Interview Questions & Answers

    User Options
    India News Network

    Latest 20 Questions
    What is the importance of Encryption on a network?
    What is multicast routing?
    What is SMTP?
    What is the difference between CSMA/CD and CSMA/CA?
    Explain clustering support ?
    What is client/server?
    What is the difference between a straight-through and crossover cable?
    What is ipconfig?
    What protocols fall under the Application layer of the TCP/IP stack?
    What is the standard color sequence of a straight-through cable?
    What are the maximum networks and hosts in a class A, B and C network?
    What is the difference between a hub and a switch?
    What advantages does fiber optics have over other media?
    What is DNS?
    What is peer to peer?
    What is ICMP?
    What common software problems can lead to network defects?
    What is the number of network IDs in a Class C network?
    What is netstat?
    What is the proper termination rate for UTP cables?



    Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

    MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
    MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

    GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

    IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
    IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

    SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
    SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




    Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions



    Cache = 0.009766 Seconds