In Java, it won’t allow me to use a long for something like this:
long size = 0xFFFFFFFF; //2^32-1
byte [] data = new byte[size];
And an int can only go as high as 0x7FFFFFFF (2^31-1). Is it possible to declare a byte array of this size?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Answer is
NOas this is the max possible initialization: