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

List some features of the abstract class.

587


What is meant by object?

572


Can we use switch statement with strings?

616


Explain java coding standards for classes or java coding conventions for classes?

612


What is the implementation of destroy method in java. Is it native or java code?

480






Is string is a data type in java?

587


How many ways can an argument be passed to a subroutine and explain them?

570


why doesn't java run on all platforms?

565


Can a static class implement an interface?

547


Can we create an object of private class?

545


Is arraylist sorted in java?

527


How to read and write image from a file ?

554


What is qualitative variable?

520


What classes of exceptions may be caught by a catch clause in java programming?

698


What is OOP Language?

624