why client call interface instead of class in ejb
why client call interface instead of class in ejb
Collapse
X
-
Tags: None
-
So that when the implementation( read class) changes, the client does not have to be changed as well. All the client knows about is the interface and that rarely changes.Originally posted by abhilash12why client call interface instead of class in ejb
Remember the golden rule "Program to the interface and not to the implementation"
Comment