About Question enthuware.ocajp.i.v7.2.913 :

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

Post Reply
Nisim123
Posts: 42
Joined: Mon Jan 20, 2014 2:26 pm
Contact:

About Question enthuware.ocajp.i.v7.2.913 :

Post by Nisim123 »

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:

Re: About Question enthuware.ocajp.i.v7.2.913 :

Post by admin »

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:

Re: About Question enthuware.ocajp.i.v7.2.913 :

Post by Nisim123 »

Yes, it actually does help, so BTW on what kind of objects we can say that they do
have a method named length()...?
:o

admin
Site Admin
Posts: 10064
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.913 :

Post by admin »

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:

Re: About Question enthuware.ocajp.i.v7.2.913 :

Post by chronix »

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:

Re: About Question enthuware.ocajp.i.v7.2.913 :

Post by admin »

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 57 guests