java - What declaration turns the below loop into infinite loop? -


place declaration i @ line 3 loop becomes infinite loop.

public class puzzel3 {     public static void main(string[] args) {         // line 3         while (i == + 1) {             system.out.println(i);         }         system.out.println("done");     } } 

double i=1/0.0; 

it turn loop in infinite


Comments

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -