Robert

63%
Flag icon
To make this work, you have to take appropriate action if a newer class or method that you are attempting to access does not exist at runtime. Appropriate action might consist of using some alternate means to accomplish the same goal or operating with reduced functionality.
Robert
Zxing has an interesting approach to this for Android: it will load an implementation class (of an interface) using reflection based on the Android API level. You provide multiple implementations without having to touch reflection
Effective Java: A Programming Language Guide (Java Series)
Rate this book
Clear rating
Open Preview