When you state :String myString;myString = "Ini string loh...";java compiler turns it in :String myString;myString = new String("Ini string loh...");Because the "Ini string loh..." is read as it werenew String("Ini string loh...") ....