0
Why stackoverflow error outcome in overloading. Int method(int i){return method(i)}
2 odpowiedzi
+ 5
Stack overflow is when too many methods/actions are started and don't finish running. Since this method keeps calling itself and doesn't have a condition to finish, the computer runs out of memory.
Is there something method() is supposed to be doing?
0
May be because your method calls itself and creates infinite recursion?