Question: QUESTION 1 What is the difference between object serialization and object marshalling? Check all that apply. Serialization is part of marshaling. Typically, marshalling requires an

QUESTION 1 What is the difference between object serialization and object marshalling? Check all that apply. Serialization is part of marshaling. Typically, marshalling requires an object to be serialized. Serialization is the process of translating an object into a different format, usually a bytestream. Marshalling is the process of providing an object to a remote procedure invocation (RMI). O Marshalling is transferring an object on the wire. QUESTION 2 Does inheritance enhance or weaken encapsulation? Inheritance enhances encapsulation. It depends. Inheritance weakens encapsulation. QUESTION 3 What is wrong with this class? Check all that apply. public class Rectangle {} public class Window extends Rectangle {} There is nothing wrong. The inheritance permit us to reuse the implementation. A window is not a rectangle. A window uses a rectangle, it is not one. QUESTION 4 Check the correct statements. Inheritance is used for reuse. O Inheritance is used for augmentation. Inheritance is used for reuse but not augmentation. QUESTION 5 Is an interface more like inheritance or more like composition? inheritance composition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
