Java tutorial
public class Main { public static void main(String[] args) { String str = "false"; // Convert using constructor Boolean blnObj1 = new Boolean(str); System.out.println(blnObj1); // Use valueOf method of Boolean class. This is a static method. Boolean blnObj2 = Boolean.valueOf(str); System.out.println(blnObj2); } }