What is the maximum size of array that can be declared in java

Questions by sumanthreddy

Showing Answers 1 - 0 of 0 Answers

Nowfal

  • Feb 6th, 2007
 

Hi..you can declare up to maximum of 2147483647..example:long []a = new long[2147483647];int[]a = new int[2147483647];float[]a = new float[2147483647];double[]a = new double[2147483647];short[]a = new short[2147483647];byte[]a = new byte[2147483647];if u have any more doubt, mail me nowfaldaan@yahoo.co.in

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions