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

hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

0 Answers  


What is the use of set in java?

0 Answers  


Convert a binary search tree to a sorted doubly linked list inplace.

1 Answers   Amazon,


Diff between Comparator and Comparable?

2 Answers   Aditya Birla,


In real time project which driver did u use? What is the main functionality of the Prepared Statement?

3 Answers   Photon,






What are nested classes in java?

0 Answers  


Is java call by reference?

0 Answers  


What is a literal coding?

0 Answers  


Which category the java thread do fall in?

0 Answers  


Difference between ‘>>’ and ‘>>>’ operators in java?

0 Answers  


what is tempplate pattern

4 Answers   IBM, RBS,


Do you know thread pools?

0 Answers   BMC,


Categories