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) {
        boolean b = true;
        // using constructor
        Boolean blnObj1 = new Boolean(b);
        // using valueOf method of Boolean class. 
        Boolean blnObj2 = Boolean.valueOf(b);
    }
}