Posted on 2006-05-19
Last Modified: 2013-12-29
Could you explain the reflection packages in java?
Question by:stmani2005
    LVL 86

    Accepted Solution

    It's there to 'look inside' classes programmatically
    LVL 8

    Author Comment

    could you explain with simple example?
    LVL 92

    Assisted Solution

    LVL 30

    Assisted Solution

    Basically it helps you get the structure of a class, what constructors it has, what methods it has, what data-members it has and it also allows you to create an object of the class given the name of the class as a "String" and even invoke methods on it on run-time.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    The viewer will learn how to implement Singleton Design Pattern in Java.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now