How to use single , double and triple equalto (=,==,===)?

  • =  is  used to assign value from one value to another.
  • == (Equality)  is used to compare.
    int i=1; double j= 1; i==j// returns true
  • === (Identity) is used to compare only string with string and number with number
    int i=1; double j= 1;  i===j// returns false

Leave a Reply

%d bloggers like this: