Java Interview Question And Answer What would you use to compare == And equals Java Interview Quest

58 views · Published 15 December 2013 · 2:13 · Indexed 20 September 2026

Channel: Interview DOT · 2013 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. Java Interview Question And Answer What would you use to compare == And equals  Java Interview Quest

 What would you use to compare two String variables - the operator == or the method equals ?
    I'd use the method equals to compare the values of the Strings and
    the == to check if two variables point at the same instance of a String object.

A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

More from this channel