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

Which class contains a method: cloneable or object?

542


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

516


What is matcher in java?

516


Can list have duplicates in java?

523


What is skeleton and stub?

590






Can a constructor be protected?

532


Why we used vector class?

631


What is the role of garbage collector in java?

493


What is difference between static variable and global variable?

548


What are keywords give examples?

581


How do I run java on windows?

531


Explain access modifiers in java.

582


What is the format specifier?

516


How to do encapsulation in java?

570


What are exception handling keywords in java?

609