Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.lang.reflect.Constructor;
import java.lang.reflect.Modifier;

public class Main {
    public static void main(String... args) throws Exception {
        Class<?> c = Class.forName("java.lang.String");
        Constructor[] allConstructors = c.getDeclaredConstructors();
        for (Constructor ctor : allConstructors) {
            System.out.println(Modifier.toString(ctor.getModifiers()));
        }
    }
}