Java programmer Interview Questions | Glassdoor

Java programmer Interview Questions

2,236

java programmer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Implement a method to determine whether a string is a palindrome.

3 Answers

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(""))

How would you scale access to a system like Twitter

3 Answers

Write a method to determine if a string starts with an uppercase letter.

2 Answers

Write a function to print the first letter of every word in a string.

3 Answers

One or more comments have been removed.
Please see our Community Guidelines or Terms of Service for more information.

1.Java Basics. 2.Plethora of Multithreading questions.GC 3.Simple data structure. (BFS) variation 4.Database Basics

1 Answer

Q: Why multiple inheritances are not supported in Java?

1 Answer

What does the action and method attribute in the HTML <form> tag do.

1 Answer

Lots of questions about arrays, lists and hashmaps

1 Answer

If you were responsible for development and launch of a billing system, how would you handle a critical situation?

1 Answer

Coding test: 1. Given a string, find out if there's repeat characters in it. 2. SQL. Given a Customer table and a Payment table (with Customer ID as primary and foreign key), write a query to output a list of customers who have not paid their bills in the last 3 months.

17 Answers
110 of 2,236 Interview Questions