aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Need clarification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Need clarification " Watch "Need clarification " New topic
Author

Need clarification

SampathKumar chinnadurai
Ranch Hand

Joined: Jul 05, 2006
Posts: 44
Hi All ,

Recently i bought the Amritendu De's book. I have gone through one of the question and i'm not convinced with the given answer.

The question is

A concrete class Certificate changes frequently . If You wish to inherit Certificate , which design principle will be violated ?

A. Interface segregation principle
B. Dependency inversion principle
C. Open closed principle
D . LSP


Correct Answer is B,

Could you please explain , why he has selected the option B.



Regards,
Sampath






SampathKumar chinnadurai
Ranch Hand

Joined: Jul 05, 2006
Posts: 44
one more Question ,

Which layer of a Java JEE application constitutes enterprise beans?

A. Virtual Platform layer,
B. Application infrastructure layer
C. Enterprise services layer
d. Compute and storage layer

And the answer is A.



Is there any layer like Virtual Platform layer. I have't heard about it . Any thoughts ?

Regards,
Sampath
Amritendu De
author
Ranch Hand

Joined: Feb 21, 2009
Posts: 135
    
    6

Answer to Q1 given in the explanation : Since the inherited classes will also have to be changed, rigid design should be avoided.

Answer to Q2: This question is from the objectives - Describe how the principle of "separation of concerns" has been applied to the layers of a Java EE application. Layers include application, virtual platform (component APIs), application infrastructure (containers), enterprise services (operating system and virtualization), compute and storage, and the networking infrastructure layers.


Senior Architect (SCEA 5, TOGAF 9, IBM OOAD, PMI certified)
[Spring 4 and Hibernate 4: Agile Java Design and Development] [OCMJEA Practice Guide] [OCA Java SE-7 and SE-6 Practice Exams]
Sameer C Naik
Greenhorn

Joined: Apr 18, 2010
Posts: 5
Amritendu De wrote:Answer to Q1 given in the explanation : Since the inherited classes will also have to be changed, rigid design should be avoided.

Answer to Q2: This question is from the objectives - Describe how the principle of "separation of concerns" has been applied to the layers of a Java EE application. Layers include application, virtual platform (component APIs), application infrastructure (containers), enterprise services (operating system and virtualization), compute and storage, and the networking infrastructure layers.


Thanks Amritendu, is there such reference given for answers in your book, this indeed helped a lot
Amritendu De
author
Ranch Hand

Joined: Feb 21, 2009
Posts: 135
    
    6

The book has an answer section for each chapter. I have tried to be as detailed as I can.

Also there is an appendix which contains the books to refer.
SampathKumar chinnadurai
Ranch Hand

Joined: Jul 05, 2006
Posts: 44
Thanks Amritendu De. I gone through the Sun Certified Enterprise Architect for Java™ EE Study Guide book and it gives clear idea about the tiers.

i have gone through most of the questions given in your book . Seems your books covers only OCMJEA5 objectives and not suitable for OCMJEA6 . why the book contains only limited questions except design patterns(it contains 120 qns) section .

Regards
Sampath

Amritendu De
author
Ranch Hand

Joined: Feb 21, 2009
Posts: 135
    
    6

70% of OCMJEA 5 topics are included in OCMJEA 6. So I'm assuming the book is still relevant.

As far as questions per chapter, I have only included the ones I can write. For example you cannot write 100 questions on EJB 3 migration. 5 or 10 is fine to understand the concepts.
Umakanth Godavarthy
Ranch Hand

Joined: Nov 10, 2005
Posts: 37
Hi Amritendu,
For the 1st Q, I'm inclined towards answer 'C' than 'B' because Certificate class is NOT 'closed' for modification (changes frequently) that can also cause issues when extended, hence violates 'Open closed principle'.
I'm not quite sure if the information in the question is sufficient to arrive at answer 'B' as it is not clear whether you are inheriting Certificate to be used in a higher level module to violate 'Dependency Inversion'.

As I understand, avoiding 'rigid' design is the basic idea behind all the design principles.

Can you please explain.

Thanks.
Amritendu De
author
Ranch Hand

Joined: Feb 21, 2009
Posts: 135
    
    6

The difference is in abstract and concrete class. If you inherit an abstract class, OCP is the choice but if it is a volatile concrete class, DIP is the choice.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need clarification