i
Datamatics Global Services
Filter interviews by
I applied via Indeed and was interviewed before Apr 2021. There were 2 interview rounds.
To find the second largest number in Java, sort the array and return the second last element.
Sort the array in descending order using Arrays.sort() method
Return the second element from the sorted array
If the array has less than two elements, return -1
Why u wanna join this company and why u re apply for this job ?
Top trending discussions
Consultant
780
salaries
| ₹5.5 L/yr - ₹21.9 L/yr |
Associate Consultant
664
salaries
| ₹3.7 L/yr - ₹15.1 L/yr |
Executive
599
salaries
| ₹1.1 L/yr - ₹4.5 L/yr |
Senior Executive
337
salaries
| ₹1.6 L/yr - ₹8.1 L/yr |
Senior Consultant
290
salaries
| ₹9 L/yr - ₹34 L/yr |
TCS
Wipro
Infosys
HCLTech