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 are the notations in Java?

1 Answers   Cap Gemini,


What is the purpose of a statement block?

1 Answers  


Define interface?

3 Answers   MindCracker,


What are non-access modifiers?

2 Answers   Cognizant,


what is language and it responsibilities

1 Answers  






Define linked list and its features with signature?

0 Answers  


How to pass arraylist to stored procedure in java?

0 Answers  


List primitive java types?

0 Answers  


write the hierarchy of component class?

1 Answers  


What is the applet security manager, and what does it provide?

0 Answers  


What is vector capacity in java?

0 Answers  


Can we add default constructor to Servlet?

1 Answers   Fidelity,


Categories