Skip to content

Instantly share code, notes, and snippets.

@mukulchauhan10
Created November 19, 2019 11:23
Show Gist options
  • Save mukulchauhan10/64df673fdaed0870fa1ca3b2a58a090e to your computer and use it in GitHub Desktop.
Save mukulchauhan10/64df673fdaed0870fa1ca3b2a58a090e to your computer and use it in GitHub Desktop.
StackOverFlowException
package CollectionJava;
public class Test {
static int count;
public static void main(String[] args) {
m1();
}
static void m1() {
for(int loop=0; loop<1; loop++){
count++;
}
System.out.println("Stack "+count+" --> "+Math.random());
m1();
}
}
//recursion project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment