Output: See here.....falsefalsetruetruetrues1 == s2 : false, both refernece variable pointing to different objectss3 == s4 : false, both refernece variable pointing to different objectss1.equals(s2): true: Different objects but values are sames3.equals(s4): true: Different objects but values are same