Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Infinite loop using while ?

Answers were Sorted based on User's Feedback



Infinite loop using while ?..

Answer / nav dev

boolean a=true;
while(a)
{
//here a should be boolean type
System.out.println(a);
}

Is This Answer Correct ?    4 Yes 0 No

Infinite loop using while ?..

Answer / sanjay singh bisht

while(true)
{
System.out.println("sanju baba");
}

Is This Answer Correct ?    2 Yes 0 No

Infinite loop using while ?..

Answer / nitin

int a=5;
while(a)
{
System.out.println(a);
}

or

while(true)
{
System.out.println("true");
}

Is This Answer Correct ?    1 Yes 0 No

Infinite loop using while ?..

Answer / sukale shobha balshiram

int a=0;
while(a+1)
{
System.out.println(a);
}

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More Core Java Interview Questions

How can a gui component handle its own events?

0 Answers  


What is the life cycle of Servlet?

3 Answers  


Can a class have an interface?

0 Answers  


What is subsequence of a string?

0 Answers  


What do you meant by active and passive objects?

0 Answers   Wipro,


What is the difference between heap and stack memory?

0 Answers  


What does bitwise or mean?

0 Answers  


What do you mean by stack?

0 Answers   Accenture,


What is an infinite loop? How infinite loop is declared?

0 Answers  


What is difference between wait and notify in java?

0 Answers  


Explain wait(), notify() and notifyall() methods of object class ?

0 Answers  


who was the founder of java

32 Answers   CTS, HCL, ProKarma,


Categories