Developer Interview Questions

269,480 developer interview questions shared by candidates

Describe pass by reference. You have a program with a method changeMe() that takes a string. In the main method, a string is set to "Hello" and it is passed to changeMe(). The changeMe() method sets the string to "I'm changed". In the main method, after call to changeMe(), there is a print statement for the string. What is printed?
avatar

Software Developer

Interviewed at eBay

4
Feb 4, 2011

Describe pass by reference. You have a program with a method changeMe() that takes a string. In the main method, a string is set to "Hello" and it is passed to changeMe(). The changeMe() method sets the string to "I'm changed". In the main method, after call to changeMe(), there is a print statement for the string. What is printed?

write a utility that when give a simple object, prints it. a simple object is an object that has only public fields, each field can be of a primitive type (incl. String) or another simple object. follow-up question was how to deal with cyclic referencing between simple objects. when printing should also indent properly the nested objects.
avatar

Full Stack Developer

Interviewed at Tipalti

3.3
Aug 17, 2021

write a utility that when give a simple object, prints it. a simple object is an object that has only public fields, each field can be of a primitive type (incl. String) or another simple object. follow-up question was how to deal with cyclic referencing between simple objects. when printing should also indent properly the nested objects.

A man was fixing his house and went to the hardware store. He pointed something out and asked how much one would cost. The clerk told him it would cost a dollar. The man asked for 300 of them. The clerk said "That will be $3". What did the man buy?
avatar

Software Developer Intern

Interviewed at Epic

3.3
Feb 16, 2014

A man was fixing his house and went to the hardware store. He pointed something out and asked how much one would cost. The clerk told him it would cost a dollar. The man asked for 300 of them. The clerk said "That will be $3". What did the man buy?

Viewing 2841 - 2850 interview questions

Glassdoor has 269,480 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.