java programmer interview questions shared by candidates
Implement a method to determine whether a string is a palindrome.
Recursive method; start from the ends and work your way in. Use indices if worried about memory.
Take a string as function parameter. Copy this str value into a new var, then use .reverse() thereupon. Compare the reversed copy back against original string using turnery operator to set resVariable to "true" : "false". Return resVariable.
(Using .split(""), as well as .join(""))
See Interview Questions for Similar Jobs
- Java Developer
- Software Engineer
- Software Developer
- Senior Software Engineer
- Junior Software Developer
- Junior Developer
- Senior Java Developer
- Junior Software Engineer
- Software Development Engineer
- Associate Software Engineer
- Web Developer
- Entry Level Software Engineer
- Software Engineer Intern
- Software Engineer I
- Senior Software Developer