Bloomberg LP Interview Question for Financial Software Developers






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

* compilation unit
+ java : 'public class SomeSource' should be in 'SomeSource.java'
+ c++ : no restriction.

* programming paradigm
+ c++ provides more programming paradigm such as functional language which support template meta programming feature, fucnctor so on. but java focuses more on OOP(i think)
* syntax comparison
c++ is more dynamic than java.(dynamic is not always good) more dynamic, harder compile and harder static analysis.
+ operator overloading
- c++ supports, java does not support

i cannot organize those difference :P

- Zaphod February 18, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Other differences:
c++: by default pass by value
Java: By defalut pass by reference except for primitive data types

c++: multiple inheritance
Java:no multiple inheritance but can implement multiple interfaces

C++: static building (must use virtual explicitly to make it dynamic)
Java: by default dynamic building.

- OM February 18, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

java argument passing is always call by value.
can you write "swap" function in java?

c++ can pass the argument by reference. like this
void swap(T& a, T& b) { T t = a; a = b; b = t; }

- Zaphod February 19, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

yeah... my bad... Java passes object by value...
Thanks Zaphod.. for pointing this out.. else I wouldnt have realized

- OM February 19, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Java compiles to a byte code which is machine independent
C++ has to be compiled every time you want to run on a new OS

- abhimanipal February 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Java provides gc, c++ not

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

Java provides multiple threading program support; C++ not

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

Java does not support pre-processors. Thus no concept of macros as in C++.

Java supports classes but no structures or unions.

Java supports interfaces unlike C++.

No multiple inheritance in Java.

No copy constructor in Java, since all objects are passed by value.

No destructor in Java.

No virtual functions in Java.

- Anonymous April 18, 2011 | 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