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.
Get Your Dream Job Now - www.vyoms.com
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 2677
Rate it!
Answers:

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>



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
    Latest 20 Questions
    What is the use of controller.php?
    What are the contents of a Block's Directory?
    Mention the options available to a company for the reduction of capital.
    Give the journal entry for reduction of liability in respect of the uncalled amount on Shares.
    Mention the ways by which a company can alter share capital.
    Name the forms of internal reconstruction.
    Mention the situations which call for internal reconstruction.
    State the differences between internal and external reconstruction.
    What is external reconstruction?
    What is internal reconstruction?
    What is the difference between merger and acquisition?
    What are the disadvantages of amalgamation?
    What are the advantages of amalgamation?
    Explain briefly the methods of calculating purchase consideration.
    What is purchase consideration?
    What is a transferee company?
    What is a tranferor company?
    Explain accounting of amalgamation.
    Why Amalgamate?
    How is Amalgamation different from a Merger?



    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.015625 Seconds