8:17 pm - Thursday April 25, 2019

Boolean Example Program for equals(Object obj)

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 equals(Object obj)
*/

public class EqualsExample
{
public static void main(String args[])
{
Boolean a= false;
Boolean b= true;
boolean s=a.equals(b); //equals(Object obj)
System.out.println(s);
}
}

OUTPUT:

false

BACK

Filed in: Z-A All Java Codes

Comments are closed.