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 8650497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:50:14+00:00 2026-06-12T13:50:14+00:00

When I read this link Java Criticism . At the section Large Array. There

  • 0

When I read this link Java Criticism. At the section Large Array. There is two point I don’t understand :

Java also lacks true multidimensional arrays (contiguously allocated
single blocks of memory accessed by a single indirection), which
limits performance for scientific and technical computing

In C, I know that multidimensional arrays is just a contiguously memory of element. So, as section above, each row in Java is an object, and multi rows just like multi objects, and they’re not contiguous in memory, right ?

Java has been criticized for not supporting arrays of more than 231 –
1 (about 2.1 billion) elements … Arrays must be indexed by int
values… An attempt to access an array component with a long index
value results in a compile-time error

Does this mean, if we can access an array component by long integer, the array size can be bigger ? And in that case, so, this still limit size of array is size of long, right ?

Thanks 🙂

  • 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-06-12T13:50:16+00:00Added an answer on June 12, 2026 at 1:50 pm

    … each row in Java is an object, and multi rows just like multi objects, and they’re not contiguous in memory, right ?

    That is correct. A Java multi-dimensional array is an array of arrays, with each array represented as a separate object.

    Does this mean, if we can access an array component by long integer, the array size can be bigger ?

    No. The maximum size of a Java array is 2^31 – 1 elements.

    The JLS says this at JLS 10.4:

    "Arrays must be indexed by int values; short, byte, or char values may also be used as index values because they are subjected to unary numeric promotion (§5.6.1) and become int values.

    An attempt to access an array component with a long index value results in a compile-time error."


    In short, the page that you linked to is correct in pointing out that Java is not ideal for applications that require the use of very large arrays. (It is possible to work around the limitations, but you can’t do it cleanly without wrapping the underlying array representation as an object. And that has performance implications, and means that you can’t use [...] syntax for indexing.)

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

Sidebar

Related Questions

Having read this link on RBAR and this , my understanding of RBAR amounts
following this link i was able to load and read pixels from a .gif.
I read many posts about this problem like [this link][1] and one solution is
I just happened to read this post :- Questions every good Java/Java EE Developer
I read about conversion of ASCII to EBCDIC using this link; Convert String from
I already read the link checker question posted in SO. If there are more
How do i open a link in different browser in java swing?? I've read
I have read about javascript editors here, more specifically refered this link How to
I read this question in stackoverflow. The excerpt answer provided by bbum is below:
I read this post where the author advices to store session files in a

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.