Motorola Interview Question for Software Engineer / Developers






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

diff b/w c++ and java
garbage collection
code once run anywhere
no use of pointers..no problem of dangling pointers...no c++ kind of memory leaks
no problems of multiple inheritance
no dynamic memory allcoation problems
large number of standard packages

diff b/w overriding and overloading
overriding: base and derived class have same function signature
overloading: difference functions with same name and return type but with different no. and or types of arguments

- camSun April 17, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Java does not support #define macros or preprocessors, does not support operator overloading

In Java, no copy constructor needed, no destructor code needed
no ambiguity between null, true, false and a true boolean type is supported.

These are some among many differences

- nikhil May 25, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Java Method Overloading - Same Method name and different return types and different input params.

- Sree July 07, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Wrapper classes are those classes such as Integer, Float, etc that wrap your basic data types such as int, float, etc and provide additional functionality and operations on these data types, other than just being able to store/retrieve a variable of the basic data type.

- kddev1109 May 13, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

multiple inheritance is not supported in c++ so to handle multiple inheritance in java we use
interface
in interface the base class can be accessed using extend keyword

difference b/w overloading & overriding
overloading is a concept in which there will be same function name with different paameters.

In a class hierarchy, when a method in a subclass has the same name and type signature as a method in its superclass, then the method in the subclass is said to override the method in the superclass. When an overridden method is called from within a subclass, it will always refer to the version of that method defined by the subclass. The version of the method defined by the superclass will be hidden.

- rockstar January 20, 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