C++ Language INTERVIEW QUESTION & ANSWERS
36. |
What is difference between C++ and Java? |
|
- C++ has pointers Java does not
- Java is the platform independent as it works on any type of operating systems
- Java has no pointers where c ++ has pointers
- Java has garbage collection C++ does not.
|
37. |
What is the difference between division and modulus? |
|
Division(/) operator is used to divide the value and return the quotient value whereas Modulus(%) return the remainder value. |
38. |
What is object composition? |
|
In composition, one class has an instance of another class as a data member. In OOP, this relationship is also known as a object composition. |
39. |
What are frameworks? |
|
Frameworks provide domain specific inheritance hierarchies that are meant for rapid application development in that domain. |
40. |
Define Message Passing? |
|
Objects communicate between each other by sending and receiving information known as messages. A message to an object is a request for execution of a procedure. Message passing involves specifying the name of the object, the name of the function and the information to be sent. |