| | |
Exception in thread "main" java.lang.StackOverflowError
![]() |
•
•
Join Date: Oct 2008
Posts: 37
Reputation:
Solved Threads: 0
i dont know how to solve this problem,,it seems that i dont know how to fixed this error
Exception in thread "main" java.lang.StackOverflowError
please helped me,,im stack on it,,
i just have a class
public class ATM{
BankAccount bank = new BankAccount();
SavingsAccount savings = new SavingsAccount();
CheckingAccount checking = new Checking();
//below are the codes..
it seems that when i will click the error,,those lines showed the error,,and i dont know how to fixed it,,can someone helped me??thanks in advance...
Exception in thread "main" java.lang.StackOverflowError
please helped me,,im stack on it,,
i just have a class
public class ATM{
BankAccount bank = new BankAccount();
SavingsAccount savings = new SavingsAccount();
CheckingAccount checking = new Checking();
//below are the codes..
it seems that when i will click the error,,those lines showed the error,,and i dont know how to fixed it,,can someone helped me??thanks in advance...
•
•
Join Date: Sep 2008
Posts: 1,559
Reputation:
Solved Threads: 196
A stack overflow error is caused when you run out of stack space. Stack overflow error can mean that you have an infinitely recursive method, since this will cause you to run out of space eventually. The stack is just a block of memory that's made available to your program. I'm pretty sure that block of memory is in RAM but it doesn't matter where it is. If you want to know more about the stack, I'd look up call stack or google stack and look for results pertaining to functions/methods using the stack. Also, you didn't post your code. When you do, make sure its in code tags.
my guess would be an unchecked recursion as well, propably unintended.
something like:
something like:
Java Syntax (Toggle Plain Text)
public String getText(){ return "The text is = " + getText(); }
![]() |
Other Threads in the Java Forum
- Previous Thread: reading from file
- Next Thread: countdown timer program
| Thread Tools | Search this Thread |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card class classes client code collision columns component constructor crashcourse database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress integer intellij j2me java javadoc javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle physics plazmic print problem program project radio recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree trolltech unlimited utility webservices windows






