"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
James Carter wrote:hey raju nidhi is a gal not a dude
"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
Raju Champaklal wrote:you will get clear after practicing other chapters like oops and stuff
SCJP 6
"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
OCPJP 6.0
Achilleas Achix wrote:Or in other words, loose encapsulation is sure to have the effect of tight coupling.
Matthew Brown wrote:
Achilleas Achix wrote:Or in other words, loose encapsulation is sure to have the effect of tight coupling.
Loose encapsulation allows tight coupling. But think of the extreme case: you could have a poorly encapsulated class that nothing else refers to - no coupling at all.
OCPJP 6.0
Matthew Brown wrote:In my opinion:
- coupling is about how a class is used
- encapsulation is about how a class allows itself to be used
Not quite the same thing. If you make all the member variables of a class public, then you've got poor encapsulation. You don't actually have poor coupling, though, until another class actually makes use of those member variables. So poor encapsulation allows tight coupling, but it's not the same thing.
OCPJP 6.0
OCPJP 6.0
Achilleas Achix wrote:I think its official : Loose coupling *NEEDS* tight encapsulation :
http://www.moleksyuk.com/2011/01/scjp-16-sun-certified-java-programmer.html
· Loose coupling is the desirable state of having classes that are well encapsulated,
Prepare for 'OCA Java SE 8 certification' with eJavaGuru.com
Author of Manning's OCA Java SE 8 bookProgrammer I Certification Guide, OCA Java SE 7 Programmer I Certification Guide and OCP Java SE 7 Programmer II Certification Guide
Mala Gupta wrote:
OCPJP 6.0
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
Oracle Certified Professional: Java SE 6 Programmer && Oracle Certified Expert: (JEE 6 Web Component Developer && JEE 6 EJB Developer)
Dieter Quickfend wrote: but a lack of encapsulation doesn't necessarily mean that your service and client classes are tightly coupled.
OCPJP 6.0
Achilleas Achix wrote:
Poor encapsulation is surely a guarantee for tight coupling.
Ikpefua wrote:
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
Ikpefua Jacob-Obinyan wrote:
Achilleas Achix wrote:
Poor encapsulation is surely a guarantee for tight coupling.
Ikpefua wrote:
Hello Achilleas, If the above statement AS-IT-STANDS is correct -(I think so)-, it means my theory that encapsulation is the problem is also correct or MOST appropriate.
-Encapsulation
-Cohesion
-Loose Coupling
-Polymorphism
-None Of The Above
-Tight Coupling
OCPJP 6.0
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
Ikpefua Jacob-Obinyan wrote: It is true that its tight coupling because it DIRECTLY means poor encapsulation,
OCPJP 6.0
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
Achilleas Achix wrote:
Dieter Quickfend wrote: but a lack of encapsulation doesn't necessarily mean that your service and client classes are tightly coupled.
Can you bring one example of having poor encapsulation *AND* loose coupling at the same time?
A little more studying led me to believe :
Loose coupling = Encapsulation + Use of Interfaces instead of Classes wherever inter object dependencies are taking place.
Classes referring to one another, even in a completely encapsulated manner *defeats* loose coupling.
Poor encapsulation is surely a guarantee for tight coupling.
Oracle Certified Professional: Java SE 6 Programmer && Oracle Certified Expert: (JEE 6 Web Component Developer && JEE 6 EJB Developer)
Ikpefua Jacob-Obinyan wrote:Hello All,
I want to make use of this opportunity to talk about a technical question I got in the real exams which is SIMILAR to the following:
In a software company a programmer is called to make certain adjustments to an application with the aim of adapting to the new printers that had just been recently acquired, after making the adjustments, users of the application had problems with using this application, what do you think is the problem?
-Encapsulation
-Cohesion
-Loose Coupling
-Polymorphism
-None Of The Above
-Tight Coupling
I will appreciate if any one help with a detailed explanation of what you think is the correct answer thanks.
I personally chose encapsulation because I suppose that the programmer 'tampered' with the API (public getter/ setter methods), which in turn affected the implementation of the users of the application. What do you guys think?.
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
Dennis Deems wrote:
As written, the question is "garbage".
Ikpefua wrote:
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
Ikpefua Jacob-Obinyan wrote:
Hello Dennis,
I will appreciate it better if your expressions are polite, secondly lets say yes the question is "garbage"
Ikpefua Jacob-Obinyan wrote:
have you bothered to make an opinion on the tough debate going on here about Encapsulation Vs Tight coupling? go ahead and please tell us something.![]()
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
Dieter Quickfend wrote:
Achilleas Achix wrote:
Dieter Quickfend wrote: but a lack of encapsulation doesn't necessarily mean that your service and client classes are tightly coupled.
Can you bring one example of having poor encapsulation *AND* loose coupling at the same time?
A little more studying led me to believe :
Loose coupling = Encapsulation + Use of Interfaces instead of Classes wherever inter object dependencies are taking place.
Classes referring to one another, even in a completely encapsulated manner *defeats* loose coupling.
Poor encapsulation is surely a guarantee for tight coupling.
You catch my drift
OCPJP 6.0
Oracle Certified Professional: Java SE 6 Programmer && Oracle Certified Expert: (JEE 6 Web Component Developer && JEE 6 EJB Developer)
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|