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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of casting?

596


Can we use both this () and super () in a constructor?

556


How we can skip finally block of exception even if some exception occurs in the exception block in java?

526


How many inner classes can a class have?

581


What is keyword and identifier?

640






Is special character in java?

616


What are the restrictions that are applied to the java static methods?

532


What is unicode datatype?

531


Why is singleton not thread safe?

654


What are JVM.JRE, J2EE, JNI?

694


What is java instanceof operator?

564


What is the purpose of default constructor?

582


How many bytes is double?

549


What do you understand by access specifiers in Java?

586


How can you make a class serializable in java?

569