Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.8K Databases
- 221.6K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.9K SQL & PL/SQL
- 21.3K SQL Developer
- 295.4K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.1K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 395 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 230 Portuguese
Question on Composition relationship.

user12203354
Member Posts: 14
Which is true about composition relationship
1. it can be one to many
2. it can never be one to many
3.it is always one to many
4.it is used to show exclusive ownership
5.never used when an object is owned by exactly one other object.
i think answer shud be 1.
But its answer is 1 and 4.(as per the answers given in the book i am referring to)
why 4 is the answer.I know composition is the relation which says one can not exist without other....then how is it used to show exclusive relationships.
pls clarify...
1. it can be one to many
2. it can never be one to many
3.it is always one to many
4.it is used to show exclusive ownership
5.never used when an object is owned by exactly one other object.
i think answer shud be 1.
But its answer is 1 and 4.(as per the answers given in the book i am referring to)
why 4 is the answer.I know composition is the relation which says one can not exist without other....then how is it used to show exclusive relationships.
pls clarify...
Answers
-
>
I know composition is the relation which says one can not exist without other
>
What book? What does that book say about exclusivity?
It is exclusive because with composition the containing object is responsible for the lifetime of the 'contained' object. It is responsible for both the creation and destruction of of the 'contained' object. It OWNS the contained object. And that ownership is exclusive. -
Thanks for clarification,
I was referring to the questions and answers in one PDF file...
i got your point now.It makes sense...
thanks -
I think this site is about insulting .....
when someone has doubts, he relies on this site to clear the doubts....but the replis one get are disgusting....
anyways....since i can not do anything about it....just telling my thoughts....
deleting the post and locking the post is not correct.. -
I think this site is about insulting .....I can't see where anyone has insulted you.when someone has doubts, he relies on this site to clear the doubts....I can't see anywhere where you expressed any 'doubts' either.but the replies one get are disgusting....Nor do I see any 'disgusting' replies.
However if you wish to persist in these claims, you should do so here: 2446570. -
I am not talking about this thread...I am talking about another thread where i asked some doubts i had and i got the below reply....Could not reply on that particular thread as it was locked by admin.....
thread link is 2461509
****
Choose none. This is not a homework answering site for your multiple-choice questions, that are only designed to elicit whether you have done the study they are about. Future posts of this nature will be deleted without notice. Locking this thread.
***** -
user12203354 wrote:It is! People keep insulting their own intelligence with layer upon layer of intense naiveté.
I think this site is about insulting ..... -
I am not talking about this thread ...As nobody said you were, the remainder seems pointless to me.
Further, what you quote is neither 'insulting' or 'disgusting'. If you wish to continue to disagree, I have already advised where you should take up your complaint.
Locking this thread.
This discussion has been closed.