Java Software Developer Interview Questions

4,306 java software developer interview questions shared by candidates

The first question was about a given number of items, and 2 types of packages, first one could carry 5 items and the second only 1 and the question was: What is the minimal number of packages required to carry all the items with given number of packages? So you actually had 3 parameters, the number of items, the number of large packages and small packages and you should have returned the minimal packages that could carry the items. If the packages were not enough to carry the items the function should return -1. There was a static function ready to populate.
avatar

Java Software Engineer

Interviewed at Travelfusion

3.3
Jul 10, 2024

The first question was about a given number of items, and 2 types of packages, first one could carry 5 items and the second only 1 and the question was: What is the minimal number of packages required to carry all the items with given number of packages? So you actually had 3 parameters, the number of items, the number of large packages and small packages and you should have returned the minimal packages that could carry the items. If the packages were not enough to carry the items the function should return -1. There was a static function ready to populate.

Second round technical interview had one string manipulation question that had to do with ordering a first string such as "banana" according to the character ordering of the second string like "bna" to output "bnnaaa."
avatar

Java Software Engineer Internship

Interviewed at 1stDibs.com

3.6
Apr 12, 2018

Second round technical interview had one string manipulation question that had to do with ordering a first string such as "banana" according to the character ordering of the second string like "bna" to output "bnnaaa."

Viewing 101 - 110 interview questions

Glassdoor has 4,306 interview questions and reports from Java software developer interviews. Prepare for your interview. Get hired. Love your job.