Reid M. Pinchback
posted 11 years ago
The answer also varies with the JDK/JVM version (although I doubt it would ever swamp database and network cost). For old JVMs (1.0, 1.1) all forms of reflection were pretty expensive, but with each successive JVM Sun put more smarts into supporting reflection efficiently. These days I suspect its hardly worth even thinking about in most contexts, although I'll admit it has been awhile since I've seen any specific metrics quoted.