Advertisements
Advertisements
प्रश्न
Write a statement to show how finding the length of a character array chr[ ] differs from finding the length of String object str.
लघु उत्तर
उत्तर
Statement to find the length of a character array chr[] is:
int 1 = chr.length;
Statement to find length of a String object str is:
int 1 = str.length();
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?