Java Program to demonstrate Boolean wrapper class

Program

import java.lang.Boolean;
public class javaLangBooleanDemo
{
	public static void main(String[] args)
	{
		Boolean a = new Boolean(true);
		System.out.println("Boolean value of 'a' is: " + a);
		a = false;
		System.out.println("Boolean value changed to: " + a);
	}
}

Output

Boolean value of 'a' is: true
Boolean value changed to: false