MCQ
What does ‘length’ refer to for an object of String class?
  • attribute
  • B
    method
  • C
    class variable
  • D
    class name

Answer

Correct option: A.
attribute
attribute

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free