Silly mistake.. But why the for loop in Java doesn't compile tho code? It says booean is expected or something like that. @xpi0t0s Thanks a lot ....
Sorry , I meant "The code runs without any error and gives output as 5 2"
Why the below code does not throw any error ?, as the 2nd argument of the for loop takes boolean type whereas it's getting data of int type ....
Separate names with a comma.