today have read strings terminated null character in java. why necessary since length of string maintained length variable of sting class ? it's kind of strange thing me. please clarify me.
thanks
java strings not null terminated. end length in length. can make \0 last character of java string, doesn't automatically terminate string. length of 12<\0>45 still 5 , not 2 in c.
Comments
Post a Comment