3:50 pm - Wednesday February 19, 1541

Boolean Example Program for valueOf(boolean b)

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
/**
@author:candidjava.com
@Description:explains how we use the valueOf method
*/
import java.io.*;
import java.lang.*;
public class Val
{
public static void main(String args[])
{
boolean b=Boolean.valueOf(true); // Returns a Boolean instance representing the specified
 System.out.println(b);                       boolean value.
}
}

OUTPUT:

true

BACK

Filed in: Z-A All Java Codes

Comments are closed.