Bloomberg LP Interview Question for Software Engineer / Developers






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

yes

- Anonymous April 26, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Can you elaborate more, if u think we can throw different object when rethrowing....

- Lex May 05, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

What is there to elaborate ?It is a factual question.... If you dont believe that it is possible write code and see

- abhimanipal May 06, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

You need to specify only throw, with no arguments in the catch block. This will rethrow the exception to the next dynamically enclosing try block.

ex:

catch (exception type goes here&) {
//    .... code goes here
    throw;
}
   catch (exception type) { 
 // ... code
}

   catch (...) //default type

- Aditya May 07, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

But it will throw the same object that is been catched. the question ask for whether we can throw a different object while rethrowing.

- Lex May 12, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

How come??? What if you specify different type (here in case of object, different type implies class name) in the catch block, then it will catch objects of different type. Also, the question says different type of object and not different objects ...

- Anonymous May 17, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

During rethrowing the ORIGINAL OBJECT is rethrown regardless of the object caught in 'catch'. Refer to Stroustroup: Exceptions.

- Anonymous June 02, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

'rethrow' means call 'throw' with no arguments.
In this case same exception is thrown again.

- Leo March 10, 2012 | 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