JavaWorld Partners IT Careers Component Guide Product Finder RFP Exchange Training Center White Papers Webcasts Advertisement Design Techniques Design with runtime class information How to make use of runtime class information in Java programs Summary In this installment of Design Techniques , Bill gives advice on using runtime class information in Java programs.
Information is power.
In our case, runtime class information gives power to the programmer because he or she has more information to work with. This is a good thing. Alas, in our case, runtime class information can be abused in designs. How runtime class information works Before I delve into guidelines, I'd like to give you some background on how runtime class information works in Java. Every class or interface you write in the Java programming language defines a new type for your program to use.