12345678910111213141516171819202122 |
- public class TestStackOutOfMemory {
- public static void main(String[] args) {
- TestStackOutOfMemory t = new TestStackOutOfMemory();
- t.stackTest(1L, 2L, 3L, 2.3, 2.4);
- }
- public double stackTest(Long l1, Long l2, Long l3, double d1, double d2) {
- long l = l1 + l2 + l3;
- double d = d1 + d2;
- return this.stackTest(1L, 2L, 3L, 2.3, 2.4);
- }
- }
|