Creating Array - OurOfMemory Exception
double arr[] =newdouble[4194304];
long arrLong[] =newlong [4194304]; <--//ERROR
Creating arrays of length 4194304.0
Exception in thread"main" java.lang.OutOfMemoryError: Java heap space
Is there any JVM switch or something else by which i can increase the Java Program in JVM so that I may declare 2 arrays of that size.

