Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.lang.reflect.Constructor;

public class Main {

    public static void main(String[] args) throws Exception {

        Class cls = Class.forName("java.lang.String");
        System.out.println("Panel Constructors =");

        /* returns the array of Constructor objects representing the public 
        constructors of this class */
        Constructor c[] = cls.getConstructors();
        for (int i = 0; i < c.length; i++) {
            System.out.println(c[i]);
        }

    }
}