java会崩溃。
原因可能是..
OutOfMemoryError
StackoverFlowError
OutOfMemoryError: PermGen space.
的OutOfMemoryError 的时候,因为它超出了内存,并且可以通过垃圾收集器提供任何更多的内存,Java虚拟机无法分配一个对象时抛出。
的StackOverflowError StackOverflowException抛出供执行堆栈溢出错误,通常在非常深的或无限递归的情况下。
OutOfMemoryError:PermGen空间 详细信息PermGen空间表示永久生成已满。永久代是存储类和方法对象的堆的区域。如果应用程序加载大量的类,则可能需要使用-XX:MaxPermSize选项增加永久生成的大小。
问题是关于可能导致崩溃的内存问题。
可能导致崩溃但可以被程序捕获并从posibilty中恢复的其他问题 是任何runtimeExceptions。 即
ArithmeticException, ArrayStoreException, BufferOverflowException, BufferUnderflowException, CannotRedoException, CannotUndoException, ClassCastException, CMMException, ConcurrentModificationException, DOMException, EmptyStackException, IllegalArgumentException, IllegalMonitorStateException, IllegalPathStateException, IllegalStateException, ImagingOpException, IndexOutOfBoundsException, MissingResourceException, NegativeArraySizeException, NoSuchElementException, NullPointerException, ProfileDataException, ProviderException, RasterFormatException, SecurityException, SystemException, UndeclaredThrowableException, UnmodifiableSetException, UnsupportedOperationException
我不会在这里进入这些。但看看... link text