All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
Moderators: Site Manager , fjwalraven
Nisim123
Posts: 42 Joined: Mon Jan 20, 2014 2:26 pm
Contact:
Post
by Nisim123 » Thu May 22, 2014 12:32 pm
So why option 4 is not correct?
Option 4 of this question says:
Every array has an implicit method named 'length' which tells you the number of elements in the array.
admin
Site Admin
Posts: 10064 Joined: Fri Sep 10, 2010 9:26 pm
Contact:
Post
by admin » Thu May 22, 2014 7:49 pm
It is incorrect because arrays do not have a method named length. They do have an implicit field name length.
HTH,
Paul.
If you like our products and services, please help us by posting your
review here .
Nisim123
Posts: 42 Joined: Mon Jan 20, 2014 2:26 pm
Contact:
Post
by Nisim123 » Fri May 23, 2014 2:12 am
Yes, it actually does help, so BTW on what kind of objects we can say that they do
have a method named length()...?
admin
Site Admin
Posts: 10064 Joined: Fri Sep 10, 2010 9:26 pm
Contact:
Post
by admin » Fri May 23, 2014 3:22 am
I don't have a list off hand but check the API for String, StringBuilder, List etc.
If you like our products and services, please help us by posting your
review here .
chronix
Posts: 5 Joined: Mon Jan 04, 2016 12:28 am
Contact:
Post
by chronix » Tue Mar 01, 2016 5:30 pm
Is this a typo??
Every array has [in] implicit method named
admin
Site Admin
Posts: 10064 Joined: Fri Sep 10, 2010 9:26 pm
Contact:
Post
by admin » Tue Mar 01, 2016 7:11 pm
Yes, it should be "an". Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your
review here .
Users browsing this forum: No registered users and 57 guests