Observe the following coding in java and find how many times will
PorkyPig
printed??
1 2 |
|
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
There is a semicolon after for loop indicating that next line is not a part of the loop hence after for loops finishes its execution,next line executes for once.