What is the difference between the '==' operator and the '.equals()' method in Java?
Ans. The '==' operator checks reference equality, while '.equals()' checks value equality in Java.
'==' compares memory addresses (references) of objects.
Example: String a = new String("test"); String b = new String("test"); a == b returns false.
'.equals()' compares the actual content of objects.
Example: a.equals(b) returns true because the content is the same.
I interviewed at Tata Consultancy Services (Mumbai)
Interview
The shortlisting process took a lot of time. There was a single round (technical). There was a single interviewer. Asked questions about data analytics, SQL, Data Visualisation, OOPM concepts. Asked questions on python. Also, asked questions on Engineering final year project.
I applied through university. The process took 6+ months. I interviewed at Tata Consultancy Services
Interview
Online Test - Typical Tests syallbus and information you will get online
Interview- Asked easy to moderate level question from my projects which basically react,javascript and some easy level questions from SQL,NoSql and MongoDB.
After clearing the TCS NQT (aptitude + 2 coding questions), you will face a 30–60 minute interview likely covering a Technical/Managerial round. Expect questions on your resume projects, OOPS, DSA, and SQL, plus HR questions on relocation and 5-year goals.