Filter interviews by
I applied via Naukri.com and was interviewed in Nov 2023. There were 3 interview rounds.
This interview happened on March 2024 for 3.6 year of experience person
They have given me 12 questions I solved most of them selected for round 2.
Singleton design pattern ensures a class has only one instance and provides a global point of access to it.
Singleton pattern restricts the instantiation of a class to one object.
Commonly used in scenarios where only one instance of a class is needed, such as database connections or thread pools.
Example: Logger class in a multi-threaded environment to ensure only one instance is used for logging.
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 was interviewed in Feb 2021.
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
Reasoning, verbal
Software Engineer
36
salaries
| ₹4 L/yr - ₹13 L/yr |
Associate Software Engineer
35
salaries
| ₹2.2 L/yr - ₹10.2 L/yr |
Technical Support Engineer
13
salaries
| ₹2 L/yr - ₹7.4 L/yr |
Software Developer
7
salaries
| ₹3 L/yr - ₹9 L/yr |
Senior Software Engineer
6
salaries
| ₹5.7 L/yr - ₹17 L/yr |
Tech Mahindra
Infosys
Wipro
TCS