Computer Science, asked by dishapai1944, 1 year ago

What does 'length' refer to for an object of String class ?(a) attribute
(b) method
(c) class variable
(d) class name

Answers

Answered by aqibkincsem
9

The ‘Length’ for an object of string class refers to a method which aids in returning the number of characters available in the specific string.

It is a final variable which is applicable for arrays, and we can obtain the size of the array by taking the help of length variable.

Answered by drjiya123
5

(C) Class Variable

Hope it helps

Mark it as brainliest if you are satisfied with the answer

Similar questions