dimanche 31 juillet 2016

How does the String class work internally in Java?

How does the String class work? I have gone through many posts and I have not found an answer.

String str="ABC";

Does the above statement call the constructor?

public String(char[] paramArrayOfChar)

if yes ,how does it call it? We are using the assignment operator. How does it call the String class constructor.

Aucun commentaire:

Enregistrer un commentaire