Predict the output of following:

public class Main
{
public static void main(String args[])
{
int a=2;
if((a!=1)&&(a1))
{
System.out.println("Hello World");
}
else
{
System.out.println("Hi World");
}
}
}


Posted on by