Infinite or infinite not

This is a snippet of code construct in java which gives a simple output :-----

1
2
3
4
5
byte k=1;
for(  ; k>0 ; k++){

 }
System.out.println(k);

The answer to the question is the value printed i.e. the final value of 'k'. Note : Its a good question so please do not spoil its fun by using a computer to solve it.Have fun...

×

Problem Loading...

Note Loading...

Set Loading...