length is an attribute which is used with arrays of any kind to get it's size. Whereas length() is a method specifically used with Strings and returns the number of characters.
26th Apr 2022, 12:14 PM
Avinesh
Vous avez souvent des questions comme celle-ci ?
Apprenez de maniĂšre plus efficace, gratuitement :