View RSS Feed

Recent Blogs Posts

  1. Java String compare to determine Equality

    by , 04-26-2012 at 07:59 PM
    Comparison of the java string could be done in various ways, as given below. It is dependent upon javastringcompare type that which of them will be used.
    * == Operator
    * equals method
    * compareTo method
    Comparing, by using the “== Operator”
    When String object references are compared, ==operator is used. If 2 variables of String are pointed towards similar object present in memory, then comparison will be returned true. In other case it will return false. It shall ...