If you compile and execute an application with the following code in its main() method: In this program why the " s" create the two objects.
String s = new String( "Computer" );
if( s == "Computer" )
System.out.println( "Equal A" );
if( s.equals( "Computer" ) )
System.out.println( "Equal B" );