Bloomberg LP Interview Question for SDE-2s


Country: United States
Interview Type: Phone Interview




Comment hidden because of low score. Click to expand.
1
of 3 vote

Well, Java is mostly used for web based applications due to its highly portable nature. So I would recommend using Java for web applications, whereas C++ can be used to model system level applications. C++ has the advantages of both procedural and object oriented languages, so it can be used with great flexibility in designing system apps. But Java on the other hand was built for web.
Pros and cons of using Java:
Pros:
1.Highly portable apps
2.Support for scripting languages, hence essential for any web based application
3.In built support for multithreading
4.Code written is highly secure
Cons:
1.High level language, so low support for developers looking to fix system level issues
2.High run time cost

Pros and cons of using C++:
Pros:
1.Extremely flexible given that it supports multiple programming paradigms
2.Provides cross platform access to multiple features available in platform specific libraries
3.No trademark issues unlike Java(owned by Oracle), hence developers have more freedom in using or even building new libraries
4.Support for automatic resource management
Cons:
1.No standard inline documentation mechanism available.
2.Support for exceptions, which is bad since C++ is primarily procedural, so it is not thread safe.
3.Memory allocation problems

- Nav August 01, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

hahaha..... forgot to mention the main C++ advantage: speed

- gen-x-s August 03, 2015 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Java : Quick Development
C++: Efficient Development
Java: Safe Programming
C++: System Programming
Java: Portable for OS
C++: More Control

- spiderman August 30, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

//
//	How do you decide whether we should use Java or C++ for a 
//  particular project . what are pros and cons
//
//     -- chad August 01, 2015 in United States
//		  Bloomberg LP Interview Question 
//
//
//	Java : Quick Development
//	C++: Efficient Development
//	Java: Safe Programming
//	C++: System Programming 
//	Java: Portable for OS
//	C++: More Control
//	
//	    -- spiderman August 30, 2015 | Flag
//
//   What he said. 
//
//   Where possible I try to use Java. The container classes as per
//   the standard container library in java.util.* meet most application
//   needs with ease. Of course, being familiar with all the nitty gritty
//   details as to how to use Vector<type>, HashMap<type> and List<type>
//   effectively comes in really handy. The number one reason why I like 
//   Java where possible is because of the strong type checking and the
//   more efficient handling of memory allocation issues. You can still 
//   have memory leaks in Java but it happens much more rarely.
//
//   But whatever you can do in Java you can do in C++ by way of effective
//   use of the STL. You would use C++ when memory and performance issues
//   are required over portability. The big issue with C++ is that your
//   responsible for memory management much more than inside Java.
//
//
// (c) 2016 Perry Anderson, All Rights Reserved, worldwide.
//
//

- perry.anderson November 25, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

If the project has a heavy workload of computation and is speed critical, or relies on system level functions and API's, use C++;
If the project requires intensive web utilities and running across platforms, use java.
For projects with no obvious favor of above properties, use what you feel comfortable.

- lguosky May 17, 2017 | 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