Bloomberg LP Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
2
of 0 vote

pass by value: when a parameter is passed by value, a new copy of the parameter is created. This new copy is passed to the method that is being called. when the method returns, this copy is destroyed. Any changes made to this new copy doesn't reflect back on the copy of the caller method.

pass by reference: when a parameter is passed by reference, address or pointer of the parameter is passed on to the method being called. So there is only one copy of the parameter. Any changes made to the parameter by the calleed method, will modify this single copy of the parameter. So when called method terminates, the caller method will see the modified copy of the parameter.

- morpheus February 12, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Pass by value: This is a time consuming process as entire data need to be copied.
This can be called as deep copy.

Pass by reference : faster as no need to copy the data. This can be called as shallow copy.

- saritha.kandepu May 08, 2009 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More