String x="hello"; String s; for(int i=0;i<10;i++) { s=new String("hi"); }
Here how many objects would be created?
Aucun commentaire:
Enregistrer un commentaire