When i run this program with command Line argument A it prints false for third comparison.
class Why
{
public static void main(
String args[])
{
String s="A";
System.out.println("A"=="A"); // true
System.out.println("A"==s); //true
System.out.println("A"==args[0]); //false
}
}
Tea Addict, Oracle Java Programmer , Oracle SQL Expert , Oracle Java Web Component Developer, Oracle Web Service Developer