This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Associate Certification (SCJA,OCAJ 5/6) and the fly likes urgent query on scja uml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Associate Certification (SCJA,OCAJ 5/6)
Bookmark "urgent query on scja uml" Watch "urgent query on scja uml" New topic

urgent query on scja uml

paarul saxena

Joined: Jun 18, 2008
Posts: 10
the answer to this question varies in mocks...
when class p is associate to class q with the multiplicity defined as *(many) on p side and 1 on q side...i.e many instnaces of q are associated with p...
which is the right answer??
class P{
Q q;
class Q
class P {}
class Q
Anand Shrivastava
Ranch Hand

Joined: Jul 22, 2007
Posts: 125
If you say * on p side and 1 on q side

Something like this


It means P has one q and Q has 0..* Ps.
In that case your first option would be correct.
[ August 25, 2008: Message edited by: Anand Shrivastava ]

Anand Shrivastava
I agree. Here's the link:
subject: urgent query on scja uml
Similar Threads
Exception in thread "main" java.lang.StackOverflowError
Casting Boolean
How to modify this program to use & display 1s and 0s instead of true and false?
assigning int types to a boolean expression
truth table