i
KOVAN TECHNOLOGY LABS
Filter interviews by
I applied via Naukri.com and was interviewed in Mar 2021. There were 4 interview rounds.
Comparable is used to define natural ordering while Comparator is used to define custom ordering.
Comparable is implemented by the class whose objects need to be sorted.
Comparator is a separate class that can be passed to sorting methods.
Comparable uses compareTo() method to compare objects.
Comparator uses compare() method to compare objects.
Comparable sorts objects in ascending order by default.
Comparator can sort obje...
Methods used in RestFul Services include GET, POST, PUT, DELETE, PATCH.
GET - retrieves data from a server
POST - sends data to a server to create a resource
PUT - sends data to a server to update a resource
DELETE - deletes a resource from a server
PATCH - updates a resource partially
Wrapper classes are needed to convert primitive data types into objects and provide additional functionality.
Wrapper classes allow primitive data types to be used in collections, as collections can only store objects.
Wrapper classes provide methods to perform various operations on the primitive data types.
Wrapper classes are used in situations where an object is required instead of a primitive data type.
Wrapper classes...
Top trending discussions
I applied via Walk-in and was interviewed in Nov 2024. There were 2 interview rounds.
Questions on string and arrays both are moderate level questions on hacherrank type for 20 marks
I applied via campus placement at National Institute of Technology (NIT), Warangal and was interviewed in Jul 2022. There were 3 interview rounds.
Their are 30 questions which one has to done in 30 mins
posted on 31 May 2022
I applied via Naukri.com and was interviewed before May 2021. There were 3 interview rounds.
Easy
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
posted on 8 Aug 2024
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
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 LinkedIn and was interviewed in Apr 2024. There were 2 interview rounds.
Q.1 Pattern
1
*2*
**3**
Q. 2
write code to get sub array with max sum from given array.
Software Developer
4
salaries
| ₹3 L/yr - ₹5 L/yr |
Software Associate
4
salaries
| ₹8.5 L/yr - ₹22 L/yr |
TCS
Infosys
Wipro
HCLTech