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
What are the types of casting?
Can we use both this () and super () in a constructor?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
How many inner classes can a class have?
What is keyword and identifier?
Is special character in java?
What are the restrictions that are applied to the java static methods?
What is unicode datatype?
Why is singleton not thread safe?
What are JVM.JRE, J2EE, JNI?
What is java instanceof operator?
What is the purpose of default constructor?
How many bytes is double?
What do you understand by access specifiers in Java?
How can you make a class serializable in java?