What's the max size you can put in an array?

when declaring an array,, i wonder if there's a limit or a maximum length you can use for array?
ex.:
int n[] = new int[what's the max length for this?];
JButton b[] = new JButton[what's the max length for this?];thanks!!!

Theoretically the maximum size of an array will be Integer.MAX_VALUE,
practically it all depends on how much memory you gave to your VM and how
much of that has already been allocated to other objects ...
kind regards,
Jos

Similar Messages

  • What's the fastest prcessor you can put in a raq4?

    my raq4 currently has an AMD K6-2 450MHz, sticker on the mainboard says 146 1A M 111 0199. Thanks for any advice.

    Multipost
    http://forum.java.sun.com/thread.jspa?threadID=584447
    http://forum.java.sun.com/thread.jspa?threadID=584445
    http://forum.java.sun.com/thread.jspa?threadID=584443

  • What is the max size of HDD I can use in my dc7600 CMT

    I am using an HP dc7600 CMT which is working fine after upgrading to a Samsung 128GB SSD, Intel Pentium D 3.4 GHz, 4GB RAM, and an AMD Radeon HD 6450. I am running Win 8.1 Pro x64, with the most recent upgrade, and have absolutely no problems. I now want to add a second internal HDD, and wonder what is the max size  I can go to. Can I go to 2TB, or am I limited to a lower figure? 1TB? 500GB? 250GB?
    Will be glad for some help here, especially if it has been actually tried in practice.
    Thanks in advance.
    Best regards
    This question was solved.
    View Solution.

    You're very welcome.
    Yes, they are very nice machines. 
    What a jump in performance when I swapped out the Pentium 4 620 mine had, for the PD 945, and tossed in 4 GB of memory.
    That box will also run the Radeon HD 6570 with no problem too, which is what I put in mine.
    The downside of that model is that there are no settings for ahci or raid.
    I own or have owned every CMT since the d510 with the exception of the dc7900.
    My main PC is now the 8200 Elite CMT which I installed W8.1 on.
    It has an i7-2600 processor and 32 GB of memory, 1 TB SATA III hard drive.
    I threw in a Radeon HD 6670 in that one.
    Best Regards,
    Paul

  • Export/Import-SPSIte :- What is the max size limit that can be moved using this command??

    Export/Import-SPSIte :- What is the max size that can be moved using this command??

    I assume you ment Export-SPWeb not Export-SPSite command.
    There is no known limitations in file size, except the compression file size that is set to 24MB by default. If you exceed 24MB, the cmp file will be splitted into several files. You can change the default 24MB value up to 1024MB, using the -compressionsize
    parameter.

  • What is the most RAM I can put in mac book pro 15 inch 2.16(2006)?

    What is the most RAM I can put in mac book pro 15 inch 2.16(2006)?

    Depends. There were two version of the MBP that shipped in 2006 with different max RAM. The quickest way to see which is yours is to use System Profiler to get your Mac's "Model Identifier."
    Do "About this Mac" from the Apple menu and, in the resulting window, click "More Info..." That launches System Profler for you.
    The answer is in the first screen of Profiler that comes up--"Hardware Overview." Note the second line in this example:
    If the Model Identifier says "MacBookPro1,X" you are limited to 2G RAM. Period.
    If the Model Identifier says "MacBookPro2,X" you can install two, 2G modules for an installed total of 4G RAM, but the logic board can only access 3.2G of it. That becomes your "max RAM.
    Hope this helps,
    AJ

  • What is the max size of a zip file with the JDK1.5 ?

    Hello everybody,
    I'm a french student and for a project, I need to create a zip file, but I don't know in advance the number and the size of files to include in my zip.
    I wish to know if someone have the answer to my question : what is the max size of a zip file with the JDK1.5 ? I believe that with the JDK1.3, the limit size of a zip was about 2Go, wasn't ?
    Thank you for all answer !
    Good day !
    PS : sorry for my very poor english ;-)

    Here is all I have found for the moment :
    ...Okay, what about my suggestion of creating your own 10GB file?
    Try this:import java.io.File;
    import java.io.RandomAccessFile;
    import java.nio.ByteBuffer;
    import java.nio.channels.FileChannel;
    import java.util.Random;
    class Main {
        public static void main(String[] args) {
            long start = System.currentTimeMillis();
            int mbs = 1024;
            writeFile("E:/Temp/data/1GB.dat", mbs);
            long end = System.currentTimeMillis();
            System.out.println("Done writing "+mbs+" MB's to disk in "+
                    ((end-start)/1000)+" seconds.");
        private static void writeFile(String fileName, int numMegaBytes) {
            try {
                int numBytes = numMegaBytes*1024*1024;
                File file = new File(fileName);
                FileChannel rwChannel =
                        new RandomAccessFile(file, "rw").getChannel();
                ByteBuffer buffer = rwChannel.map(
                        FileChannel.MapMode.READ_WRITE, 0, numBytes);
                Random rand = new Random();
                for(int i = 1; i <= numMegaBytes; i++) {
                    for(int j = 1; j <= 1024; j++) {
                        byte[] bytes = new byte[1024];
                        rand.nextBytes(bytes);
                        buffer.put(bytes);
                rwChannel.close();
            } catch(Exception e) {
                e.printStackTrace();
    }On my machine it took me 43 seconds to create a 1GB file, so it shouldn't take too long to create your own 10GB. Then try zipping that file.
    Good luck.

  • HT201342 what is the max size of attachment that possible to send with icloud email?

    what is the max size of attachment that possible to send with icloud email?

    Welcome to the Apple Community.
    There isn't an attachment size limit as such, the limit applies to the entire message including all attachments, which is 20 MB.
    if you are using a mail application to send emails (ie not via a web browser) you may be subject to smaller limits imposed by your own ISP.

  • What is the latest OS I can put on my iBook?  600 MHZ Power PC G3

    What is the latest OS I can put on my iBook?  Mine has OS X 10.3.9.  It is 600 MHZ Power PC G3.  It won't connect to my home wifi, so I need a later OS.

    Swazoo wrote:
    Thank you, I pass that test, but noticed on several sites that i need 256 MB for Tiger 10.4.  I am not sure if this is true or not.  Also, I am not sure where to find a download of the OS (can i download it on my PC, burn it, and use CD it to install?
    Hi, and welcome to Apple Support Communities.
    I wouldn't mess around with a measly 128 MB upgrade (assuming that's what you have now). Instead of merely doubling the RAM, maximize it with a 512 MB module.
    http://eshop.macsales.com/item/Other%20World%20Computing/100SO512328L/
    Good luck.

  • Will Result Cache improve the database performance in 11g? what is the max size of Result Cache?

    Will Result Cache improve the database performance in 11g? what is the max size of Result Cache?

    Thanks for convincing me I really need a new laptop...
    SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:52.94
    SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:00.01
    SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:00.01
    SQL> select count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:45.08
    SQL> select count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:01:16.29
    SQL>  select count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:01:18.63
    Message was edited by: Hoek
    The result cache seems to have lagged a bit for the first hintless query..

  • What is the new thing you can do with photos with the new 5.1 update ???  Can you delete from your photo library directly from the phone ?

    What exactly is the new thing you can do with photos with the new 5.1 update ??  Can I now delete photos from photo library directly on the phone itself??

    I don't think so.  It's an apple mouse that and under the setup menu it's referred to as a Bluetooth mouse
    Sent from my iPad

  • What is the max size (length) that an http post can handle?

    I have an application that builds a SOAP document and makes use of Apache SOAP API to do XML messaging.
    To build the SOAP message, I have to query the database for a batch of data to be posted to another "web service" application using SOAP. The problem is when the SOAP document gets too large, the receiving end (the url where I'm doing the post) returns SOAP FAULT stating that end tags are missing. I am suspecting that during the post, the lengthy SOAP message has been truncated (no end tags).
    I wanted to know if there is a limit to how large a SOAP message can be when doing a post to a servlet or when using the APACHE SOAP API.
    Thanks.

    Typically, J2EE servers will allow their administrators to set a maximum size for POST data - typical sizes are of 1MB. You can adjust these usually to a maximum size of about 2GB. The size is usually set smaller to avoid various types of DOS types.
    Also, some J2EE servers such as WebLogic Server allow the administrator to specify a maximum amount of time the server is to wait between the reception of pieces of the POST data - this is often set fairly high (8 minutes or so) but may be set lower again to avoid DOS attacks.
    See if you can find out the settings for your servlet engine and perhaps get them modified.
    Chuck

  • What is the max RAM I can have installed?

    I have a MBP 13" that is running extremely slow and the dang pinwheel of death shows up all the time.
    Can anyone tell me how much I can put in it?  For that matter - what kind of RAM should I put in?
    Thanks for all help.

    I am back again.  Hoping one of you brilliant people have any idea what this means:  http://cl.ly/image/0t3P313g1u2o
    It is a screen shot of my console, under all messages.  There does appear to be something that tries and fails reguarly.
    Any ideas?

  • What is the max memory card can i use for my N72?

    Hi..i have a Nokia N72 (+128mb) and i want changing the memory card so i ask if i can put a 1gb memory or maybe 2gb memory without negatif effects and what is the best type of memory cards..thanks

    You can run maximum of 2 GB cards. Check what type of cards that your phone support on the manual. Transcend, Kingston etc are better brands.

  • What is the latest OS you can update to if you have safari 5?

    what is then latest OS i can update my macbook to.  i have OS 10.6.8 at present.

    It's determined by the computer's hardware and not the installed Safari version. Open the Mac App Store and try downloading Mavericks. If you get told it's incompatible, choose About this Mac from the Apple menu, check if the computer has at least a Xeon or Core 2 Duo(not Core Duo) CPU and 2GB of RAM, and if it does, click here and order a download code for Lion 10.7.
    Back up your data before upgrading. Mac OS X 10.7 and newer don't support PowerPC programs such as versions of Microsoft Office prior to 2008.
    (106944)

  • What's the maximum drive i can put in a MD G4 Dual 867

    What's the maximum H drive i can put in a MD G4 Dual 867,
    Can i put a bigger one as 120GB?
    thanx
    Oege

    Hello, I've got a 250Gig hard drive waiting to go in my G4 Dual 867.
    I'd like to sit it next to the original 60Gig drive that came with the Mac.
    Can anyone point me to a diagram showing how to access the bay? It looks a bit fiddly.
    Thanks.
    Tom

Maybe you are looking for

  • I cannot figure out why my iphone wont show up in itunes?

    I've been to the Apple support page where it walks you through the steps to uninstall and reinstall Itunes and it's components. I've done all those steps, and when I connect my iphone into my computer a window pops up that says "Auto Play" and it has

  • Help Needed in COOISPI T-Code

    Dear experts. After executing cooispi t-code and selecting "CONFIRMATION" from Drop down list and entering Material or Order Number.. The report does not show me the Material number and Material description for the following order.. both the fields a

  • HOW TO RECOVER FORMS 6I .FMB FILE

    I TRY TO OPEN FORM IN FORM BUILDERS AND IT GIVES ERROR. FRM-10043: Cannot open file IT HAPPENED DUE TO SOME NETWORK PROBLEM, I HAD TO END TASK FORM BUILDER CUZ IT WAS HAULTED. NEXT TIME I OPEN MY FORM MODULE AND IT WAS CORRUPTED. PLESAE ADVISE SOME W

  • APPCS5.5 Clip Marker Sync Question

    Very simple scenario: Within Adobe Premiere Pro CS5.5, I inport (1) single video, minus audio. I then import (1) audio track, completely not associated with the audioless video clip. (For sake of this scenario, (1)video of gun shot - no sound, (1)aud

  • Error cannot get new token due to device offfline state

    I cant download any app from appworld or even cant access into Myworld. Its says "Cannot get new token due to device offline state.(Error id:40760)" i reinstalled the appworld but its the same thing happening.Besides i have reset my BBID pasword thro