Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7524937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:11:50+00:00 2026-05-30T03:11:50+00:00

When when an arraylist’s logical size reaches its capacity, does it link a new

  • 0

When when an arraylist’s logical size reaches its capacity, does it link a new array on to the end or does it make a new array and copy all the values into the new array?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:11:51+00:00Added an answer on May 30, 2026 at 3:11 am

    That second one — it creates a new array and copies the old one over. If you want to avoid the copying, then you can use LinkedList instead, which does just add new links to a chain; but of course then you don’t get the fast indexing that a single array of elements provides.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ArrayList<String> emplist = new ArrayList<String>(); //Inside the array I add list of employee that
My arraylist contains String array objects. How Can I get all values? My code
ArrayList a = new ArrayList(); for(int i = 0; i < a.size(), i++) {
ArrayList array = new ArrayList(); Iterator it1 = array.iterator(); while (it1.hasNext()){ Myclass temp =
I have an ArrayList<String> that I'd like to return a copy of. ArrayList has
I type ArrayList memberNames = new ArrayList() { Jim, John, George }; and Visual
I often use an ArrayList instead of a 'normal' array[] . I feel as
ArrayList<String> veri1 = new ArrayList<String>(); String[] veri2 = {Fatih, Ferhat, Furkan}; How can I
i have this code: ArrayList list = new ArrayList(); foreach (DataRow dataR in prenume.Rows)
ArrayList queryParms = new ArrayList(); StringBuffer sql = new StringBuffer(); sql.append( SELECT A.FLDREC_NUM, +

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.