This means that for optimal performance only one or two classes should implement a particular method in a particular hierarchy under the particular target type, eg For a List variable, if you are only using one or two implementations (say ArrayList and LinkedList), the code can be optimized much better than if you can assign 3 or more List implementations to that variable - ie the application only loads one or two List implementations during the JVM lifetime.
0 Comments
Leave a Reply. |