Skip to main content
3 events
when toggle format what by license comment
Jul 9, 2015 at 5:36 comment added M. Shaw @RajMalhotra As the JLS states a String created at runtime is a newly created Object. Thus == will return true if the address is the same. On the other hand Strings created at compile time are treated as literals - thus == would return true.
Jul 9, 2015 at 5:34 comment added Frosted Cupcake @M.Shaw-that I know,I want an explaination for the points mentioned in the JLS given above
Jul 9, 2015 at 5:33 history answered M. Shaw CC BY-SA 3.0