we know that java take all its syntax from c but in c this program works but not in java
class Demo
{
public static void main(String... S)
{
boolean x=1;
while(x)
{
System.out.println("program is correct");
}
System.out.println("not good");
}
}
this will give compilation error and said int are not campatble with boolean in java why?
class Demo
{
public static void main(String... S)
{
boolean x=1;
while(x)
{
System.out.println("program is correct");
}
System.out.println("not good");
}
}
this will give compilation error and said int are not campatble with boolean in java why?
Thanks first of all for the useful info.the idea in this article is quite different and innovative please update more.
ReplyDeleteJAVA Training in Chennai
Java training institute in chennai
Selenium Training in Chennai
Hadoop Training in Chennai
Python Training in Chennai
Software testing training in chennai
JAVA Training in Annanagar
java training in chennai anna nagar