<%

for(inti=0;i>3;++i;)

sop(i);
%>
%

Answers were Sorted based on User's Feedback



<% for(inti=0;i>3;++i;) sop(i); %> %..

Answer / sanket

no it throw compile time error because in for loop update part has semicolon which is not correct syntax after that if we right inti then it is not resolved as variable so it is also need to be int i

Is This Answer Correct ?    4 Yes 0 No

<% for(inti=0;i>3;++i;) sop(i); %> %..

Answer / manthan

Nothing printed
bcz i=0 and i>3 it print 0,1,2 if i<3

Is This Answer Correct ?    3 Yes 0 No

<% for(inti=0;i>3;++i;) sop(i); %> %..

Answer / reddy

could you please send me the answer

Is This Answer Correct ?    3 Yes 2 No

<% for(inti=0;i>3;++i;) sop(i); %> %..

Answer / paul z

There appears to be a space missing after the int in the for(inti=0;.... but you do not need the int anyway so should read for(i = 0; i > 3; i++).

I am assuming you want i to increment taking the values 0,1,2,3

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More JSP Code Interview Questions

IS it Compulsory that a class name is same as file name in java?

7 Answers   Sun Microsystems, Wipro,


How to add flash or *.gif file in edit panel in java?

0 Answers  


give me the small script to add a global page through any domain?

1 Answers  


doors.txt;10;15

0 Answers  


How to maintain session in Jsp?

4 Answers   IBM,






<% for(inti=0;i>3;++i;) sop(i); %> %

4 Answers   eClinicalWorks,


Categories
  • PHP Code Interview Questions PHP Code (33)
  • JSP Code Interview Questions JSP Code (6)
  • ASP Code Interview Questions ASP Code (5)
  • CGI Perl Code Interview Questions CGI Perl Code (3)
  • JavaScript Code Interview Questions JavaScript Code (63)
  • VB Script Code Interview Questions VB Script Code (20)
  • Shell Script Code Interview Questions Shell Script Code (31)
  • Python Code Interview Questions Python Code (34)
  • WinRunner Code Interview Questions WinRunner Code (1)
  • HTML DHTML XHTML Code Interview Questions HTML DHTML XHTML Code (13)
  • XML Interview Questions XML (43)
  • Scripts_Markup Code AllOther Interview Questions Scripts_Markup Code AllOther (5)