when do java infinite loops stop?
I read about infinite loops and found out in some languages it will stop
when stack overflows or reached the allotted maximum memory. Others will
loop forever depending on the type of program and language. My question
is, do java infinite loops stop? I'm just curious because java has a
garbage collector, that reuse memory when there's memory leak in case of
reaching allotted maximum memory and stack overflow.
Also,will this kind of infinite loop stop?
for( ; ; ){}
No comments:
Post a Comment