Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

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

        Class cls = Class.forName("java.lang.Integer");

        // returns the name and package of the class
        System.out.println("Class = " + cls.getName());
        System.out.println("Package = " + cls.getPackage());

    }
}