I have been unable to find anything about heap memory in my JAVA book and I need to be able to create a class with the non-standard option of having 256MB of heap memory. Any help would be appreciated.
That's nothing you can do in the class itself, since the heap memory is allocated in the JVM. If you start the program with the option -Xmx256mb, you'll be fine. Like this:
Code:
java -Xmx256m -classpath . some.package.MyClass
Have a read in your favourite command line at "java -?" and "java -X".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.