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) {
        Main cl = new Main();
        Class c1Class = cl.getClass();

        // returns the Class object associated with an integer
        int k = 5;
        Class kClass = int.class;

        boolean retval1 = c1Class.isPrimitive();
        System.out.println(retval1);

        boolean retval2 = kClass.isPrimitive();
        System.out.println(retval2);
    }
}