File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Coupling question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Coupling question" Watch "Coupling question" New topic
Author

Coupling question

Serch Hdez
Ranch Hand

Joined: May 01, 2008
Posts: 43
Hi there, I have problems understanding the coupling topic expectations for the exam (SCJP 1.5), is there any good examples that could illustrate this concept and what is the exam expecting us to know?, thanks in advance.
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
K&B book.


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Serch Hdez
Ranch Hand

Joined: May 01, 2008
Posts: 43
Thanks but I read it and it wasn't clear... :S.. does somebody know any other sources for that?
Wim Molenberghs
Greenhorn

Joined: Jan 31, 2008
Posts: 16
Loose coupling refers to minimizing the dependence of an object on other objects. In other words, you can change the implementation of a class without affecting the other classes.These properties make the code extensible and easy to maintain.

For example, consider two classes, A and B. If they do not use each other at all (neither of them instantiates the other, invokes a method on the other, and so on), they are not coupled. If A uses B (for example, instantiates B) but B does not use A, then they are loosely coupled. If both A and B use each other, then they are tightly coupled.

Another criterion of loosely coupled classes is how they access each other�s members. Loose coupling demands that a class keep its members private and that the other class access them
through getters and setters
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Coupling question