Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.76 :

Posted: Sun Oct 16, 2011 1:14 pm
by ETS User
I'm not sure I agree with the 1st answer, "low coupling", which I assumed to be the same as "loose coupling".

"Using a reference variable of an interface type" to me is very tightly coupled.

Let me know if there is something I am missing.

Re: About Question com.enthuware.ets.scjp.v6.2.76 :

Posted: Sun Oct 16, 2011 4:33 pm
by admin
You did not quote the complete option. It says, "Using a reference variable of an interface type instead of the class implementing that interface."

Using an interface is indeed low coupling as compared to using the class.

HTH,
Paul.