Monday, 15 February 2010

android - How String terminate in java is it terminate by '\0' like C++? -



android - How String terminate in java is it terminate by '\0' like C++? -

this question has reply here:

how string terminates in java? 3 answers

how string terminate in java terminate '\0' c++?

if have string = "i string". how java know string going end c++ string terminate '\0' char

as explained here - why-strings-are-terminated-with-null-character-in-java,

they end length in length. can create \0 lastly character of java string, doesn't automatically terminate string. length of 12<\0>45 still 5 , not 2 in c.

java android

No comments:

Post a Comment