تفاوت == و Equals در جاوا

what is different between "==" and equals methods?

  • The "==" operator compares the address of both of the objects if both are same it will  return true else false.
  • equals method compare the content. if contents are same it will  be return true else false.


نظرات 0 + ارسال نظر
برای نمایش آواتار خود در این وبلاگ در سایت Gravatar.com ثبت نام کنید. (راهنما)
ایمیل شما بعد از ثبت نمایش داده نخواهد شد