1It usually happens when the stack pointer exceeds the stack bound. Usually due to deep infinite recursions
1class someClass{
2 public static void main(string[] args){
3 //calling the loop method
4 loop();
5 }
6 /*basicly calling the loop method in the loop method
7 * that is a way to get a nice stackoverflow
8 * your welcome
9 */
10 public static void loop(){
11 loop();
12 }
13}
14//or
15class someOtherClass{
16 public static void main(string[] args){
17 //basicly a never ending loop that has no delay
18 while(true){
19 Systen.out.println("STACKOVERFLOW");
20 }
21 }
22}
23//or
24class someOtherOtherClass{
25 public static void main(string[] args){
26 //basicly another never ending loop that has no delay
27 for (i = 1; i > 0; i++){
28 Systen.out.println("STACKOVERFLOW AGAIN");
29 }
30 }
31}
1class MyClass
2{
3 private static final int PROTEINS = 0;
4
5 ...
6
7 MyArray[] foo = new MyArray[PROTEINS];
8
9}
10