// Program to explain the following String function :
// String( String strObj )class MString11
{
public static void main( String args[ ] )
{
String s1 = "Nils : " + 5 + 5;
String s2 = "Nils : " + (5 + 5);System.out.println( s1 );
System.out.println( s2 );
}
}
Output:Nils : 55
Nils : 10