MCQ
What will be the accessor method for length.
  • A
    setLength
  • B
    length 
  • getLength() 
  • D
    getlength()

Answer

Correct option: C.
getLength() 
(C) getLength()

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