Filter interviews by
I applied via Campus Placement and was interviewed in Dec 2021. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Sep 2021. There was 1 interview round.
Top trending discussions
In Java, == compares memory addresses while .equals() compares the actual content of objects.
== compares memory addresses of objects, while .equals() compares the actual content.
== is used to compare primitive data types, while .equals() is used to compare objects.
Example: String str1 = new String("hello"); String str2 = new String("hello"); str1 == str2 will be false, but str1.equals(str2) will be true.
The question explains the difference between == and .equals() in Java for comparing object references and content.
Use == to compare object references (memory location)
Use .equals() to compare the actual content or values of the objects
Example: String str1 = new String("hello"); String str2 = new String("hello"); str1 == str2 will be false, but str1.equals(str2) will be true
I applied via AmbitionBox and was interviewed in Sep 2023. There were 7 interview rounds.
Explain about one topic
I applied via Company Website and was interviewed in May 2023. There were 4 interview rounds.
Encapsulation, abstraction, interface
I was interviewed in Feb 2021.
The static keyword in Java is used to create class-level variables and methods that can be accessed without creating an instance of the class.
Static variables are shared among all instances of a class.
Static methods can be called without creating an instance of the class.
Static blocks are used to initialize static variables.
Static keyword can also be used to create static nested classes.
I applied via Naukri.com and was interviewed in Jan 2023. There were 3 interview rounds.
First I will give the altitude test
My coding knowledge is good and my coding speed is fast
In Java, == compares memory addresses while .equals() compares the actual content of objects.
== compares memory addresses of objects, while .equals() compares the actual content of objects.
== is used to compare primitive data types, while .equals() is used to compare objects.
Example: String str1 = new String("hello"); String str2 = new String("hello"); str1 == str2 will be false, but str1.equals(str2) will be true.
In Java, == compares object references, while .equals() compares object values.
Use == to compare if two object references point to the same memory location.
Use .equals() to compare if two objects have the same values.
Example: String str1 = new String("hello"); String str2 = new String("hello"); str1 == str2 will be false, but str1.equals(str2) will be true.
I applied via Company Website and was interviewed in Apr 2022. There were 3 interview rounds.
Logical Reasoning, Verbal ability
Associate Software Engineer
27
salaries
| ₹2.3 L/yr - ₹6.6 L/yr |
Software Engineer
23
salaries
| ₹2.9 L/yr - ₹10.5 L/yr |
Senior Software Engineer
18
salaries
| ₹7.9 L/yr - ₹24 L/yr |
Software Developer
6
salaries
| ₹3.2 L/yr - ₹7.2 L/yr |
Technical Lead
5
salaries
| ₹22.5 L/yr - ₹42 L/yr |
TCS
Infosys
Wipro
HCLTech