HOW TO PRINT A NO IN WORDS USING WHILE LOOP THE NO WILL BE
PRINTED WHEN IT WILL BE IN THE RANGE BETWEEN 1 AND 3?



HOW TO PRINT A NO IN WORDS USING WHILE LOOP THE NO WILL BE PRINTED WHEN IT WILL BE IN THE RANGE BET..

Answer / jay harkhani

class WhileLoop
{
public static void main(String args[])
{
int i=1;
while(i!=4)
{
System.out.println("NO");
i++;
}
}
}

Is This Answer Correct ?    5 Yes 10 No

Post New Answer

More Core Java Interview Questions

what is bytecode ?explain in detail and watz the difference between bytecode and machine code?

6 Answers   Lucent,


What are the rules for variable declaration?

0 Answers  


difference throws and throw in java

3 Answers  


describe method overloading

0 Answers  


How many arguments can a method have java?

0 Answers  






When we will use an Interface and Abstract class?

9 Answers  


What is java and its types?

0 Answers  


difference between arraylist and linkedlist otherthan performance

2 Answers   L&T,


Is there any need to import java.lang package?

13 Answers   Sun Microsystems,


What enableEvents() method do?

1 Answers  


Static Variable can referred in non-static method?

3 Answers  


What is a prefix function.write down a code to compute prefix function.

0 Answers  


Categories