About Question enthuware.ocpjp.v7.-2-.1170 : Is the Composite pattern on the exam?

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
Student
Posts: 53
Joined: Fri Sep 20, 2013 7:20 am
Contact:

About Question enthuware.ocpjp.v7.-2-.1170 : Is the Composite pattern on the exam?

Post by Student »

Erm, is the Composite pattern even on the exam? Last time I checked it's just the Factory, Singleton and DAO patterns.
Thanks.

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

Re: About Question enthuware.ocpjp.v7.2.1170 : Is the Composite pattern on the exam?

Post by admin »

No, it is not officially on the exam but some candidates have reported seeing this pattern in the options.

HTH,
Paul.


toolforger
Posts: 38
Joined: Fri Nov 13, 2015 4:40 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.1170 : Is the Compos

Post by toolforger »

Option 4 seems incorrect.
I agree that Composite does (in a sense) restrict what the aggregate functionality can do, but that's not a drawback, that's just how Composite is defined, i.e. a restriction on the scenarios where Composite is applicable
It's just as a bicycle not having a motor is not a drawback, but just the definition of a bicycle. If you want a motor you buy a motorcycle.

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

Re: About Question enthuware.ocpjp.v7.2.1170 : Is the Compos

Post by admin »

toolforger wrote:Option 4 seems incorrect.
I agree that Composite does (in a sense) restrict what the aggregate functionality can do, but that's not a drawback, that's just how Composite is defined, i.e. a restriction on the scenarios where Composite is applicable
It's just as a bicycle not having a motor is not a drawback, but just the definition of a bicycle. If you want a motor you buy a motorcycle.
That is a fair point. "Limitation" is probably more suitable word than drawback.
Paul.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests