Filter interviews by
I applied via campus placement at Hindustan Institute of Engineering Technology (HIET), Chennai and was interviewed in Nov 2024. There were 2 interview rounds.
Logical reasoning - 20 questions
Java Program - 1 question
A Java program to reverse a string involves converting the string to a character array and then swapping characters from both ends.
Convert the string to a character array using toCharArray() method
Use two pointers, one starting from the beginning and the other from the end, to swap characters until they meet in the middle
Finally, convert the character array back to a string using String constructor
Use a sorting algorithm like bubble sort or quicksort to arrange the strings in ascending order.
Implement a sorting algorithm like bubble sort or quicksort to rearrange the strings in ascending order.
Compare each pair of strings and swap them if they are in the wrong order.
Repeat this process until the array is sorted.
Example: ['apple', 'banana', 'cherry'] -> ['apple', 'banana', 'cherry']
Top trending discussions
posted on 12 Jul 2021
I applied via Campus Placement and was interviewed in Jun 2021. There were 3 interview rounds.
posted on 12 Jul 2021
I applied via Campus Placement and was interviewed in Jun 2021. There were 3 interview rounds.
Interview experience
Software Developer
9
salaries
| ₹1.5 L/yr - ₹5.6 L/yr |
Software Engineer
4
salaries
| ₹1.6 L/yr - ₹2.6 L/yr |
Softwaretest Engineer
4
salaries
| ₹2.2 L/yr - ₹3.6 L/yr |
DOT NET Developer
3
salaries
| ₹1.2 L/yr - ₹4.5 L/yr |
Software Testing Engineer
3
salaries
| ₹1.8 L/yr - ₹2.6 L/yr |
Tesla
Mahindra & Mahindra
TCS
Infosys