Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| Interview Questions and Answers for 'Itc infotech' - 2 question(s) found - Order By Newest | ||||
| ||||
| Ans. Composition - has-a relationship between objects. Inheritance - is-a relationship between classes. Composition - Composing object holds a reference to composed objects and hence relationship is loosely bound. Inheritance - Derived object carries the base class definition in itself and hence its tightly bound. Composition - Used in Dependency Injection Inheritance - Used in Runtime Polymorphism Composition - Single class objects can be composed within multiple classes. Inheritance - Single class can only inherit 1 Class. Composition - Its the relationship between objects. Inheritance - Its the relationship between classes. | ||||
a. Inheritance b. Encapsulation c. Abstraction d. Composition | ||||
| ||||
| Ans. Transient variables are variable that cannot be serialized. | ||||
a. static and transient b. transient and final c. static and synchronized d. abstract and final | ||||
a. Transient b. Final c. Explicit d. Synchronized | ||||
a. transient b. final c. public d. static | ||||