0% found this document useful (0 votes)
4 views2 pages

Java Interview Questions for Developers

The document contains interview questions and answers for a Java developer, focusing on basic to intermediate programming concepts. It includes examples such as reversing a string without built-in functions and checking if a number is a palindrome. The content is designed to help Rajitha Nellepalli prepare for Java developer interviews.

Uploaded by

anrkng
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Java Interview Questions for Developers

The document contains interview questions and answers for a Java developer, focusing on basic to intermediate programming concepts. It includes examples such as reversing a string without built-in functions and checking if a number is a palindrome. The content is designed to help Rajitha Nellepalli prepare for Java developer interviews.

Uploaded by

anrkng
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Java Developer Interview Answers for Rajitha Nellepalli

(Previous content retained...)

---

Programming Interview Questions & Answers

Basic to Intermediate Programming

1. Reverse a String in Java without using built-in functions:

public String reverse(String input) {

String result = "";

for (int i = [Link]() - 1; i >= 0; i--) {

result += [Link](i);

return result;

2. Check if a number is a palindrome:

public boolean isPalindrome(int num) {

int original = num, reverse = 0;

while (num > 0) {

reverse = reverse * 10 + num % 10;

num /= 10;

}
return original == reverse;

... (Truncated here for clarity, actual content will be fully added in script)

You might also like