what is the length of null string?
Answers
Answered by
4
Answer:
null is the value of reference variable. but empty string is blank.it gives the length=0 . empty string is a blank value,means the string does not have any thing. no method can be invoked on a object which is assigned a null value
Answered by
2
Answer:
Null is a value of reference variable.
But empty string is blank. It gives the length = 0.
Empty string is a blank value, means the string does not have any thing.
No method can be invoked on a subject which is assigned a NULL value.
The string is terminated by the null character. The string of null help programmers to determine the length of a strings.
I hope it will help you..
Similar questions
Math,
4 months ago
Economy,
4 months ago
History,
9 months ago
Math,
9 months ago
Social Sciences,
1 year ago