1.

Explain the JSP for loop.

Answer»

The JSP For loop is used for ITERATING the elements for a certain CONDITION, and it has the following THREE parameters:

  • The variable counter is initialized
  • Condition till the loop has to be executed
  • The counter has to be incremented

The for loop syntax is as follows:

for(inti=0;i<n;i++){ //BLOCK of statements}


Discussion

No Comment Found