Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.Point;
import java.lang.reflect.Constructor;

public class Main {
    public static void main(String[] argv) throws Exception {
        Constructor con = Point.class.getConstructor(new Class[] { int.class, int.class });
        Point obj = (Point) con.newInstance(new Object[] { new Integer(1), new Integer(1) });
    }
}