Microsoft Interview Question for Software Engineer / Developers






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

Just to get the ball rolling

* Java does not include structures or unions because the class encompasses these other forms.
* Java does not support operator overloading.
* Java does not include a preprocessor or support the preprocessor directives.
* Java does not perform any automatic type conversions that result in a loss of precision.
* All the code in a Java program is encapsulated within one or more classes. Therefore, Java does not have global variables or global functions.
* Java does not support multiple inheritance.
* Java does not support destructors, but rather, add the finalize() function.
* Java does not support templates.
...

- Hemant March 07, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Java 5 actually does have support for templates. I'm not too familiar with C++ but my understanding is that it's similar to templates in C++.

http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf

- Anonymous March 05, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Java supports the "Interface" while
C++ defines interface as implementation of the header files.

- Answer. March 07, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The basic difference is c++ execution method is compilation whereas java is interpretation

- Kiran March 27, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Strange no one mention about garbage collection. In Java it is automatic and in C++ you have to manage this.

- abc March 27, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Strange no one mention about garbage collection. In Java it is automatic and in C++ you have to manage this.

- abc March 27, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Java supports Multithread, but C++ doesn't.

- James May 10, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Couple of fixes to the list above -
1) both Java & C++ support multithreading
2) While Java bytecode is interpreted when it runs on the Java VM, Java code itself is compiled into bytecode (.java --> .class files)

Also worth noting: pre-1.4 Java did not support templates (aka generics) whereas C++ always did

- foobar May 11, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

One of the important points I generally like bringing up is default compile time binding in c++ and runtime binding in java. This makes polymorphism act differently in the two unless u have used the virtual keyword in C++.

- G September 01, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

all methods are virtual by default in java.
You have to explicitly mention the keywork "virtual" in c++.

- karthik October 10, 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