O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reflection API

Introspection is possible due to the support of the Reflection API provided in the java.lang.reflect package. Your objects can get instances, descriptions, and interfaces of other objects through the Reflection API. You can determine all the methods and variables in an object, and you can determine all the exceptions and events thrown by an object. For reflection to work, all data types must be represented as objects. No problem, because Java is an object-oriented programming language, right? Actually, it is somewhat of a problem, because Java is a hybrid object-oriented programming language.

A Hybrid Object-Oriented Language

Strictly speaking, Java doesn't qualify as a pure object-oriented language because, in addition to objects ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required