Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Design - Interview Questions and Answers for 'Adapter' - 6 question(s) found - Order By Newest | ||||
| ||||
Ans. boolean - java.lang.Boolean byte - java.lang.Byte char - java.lang.Character double - java.lang.Double float - java.lang.Float int - java.lang.Integer long - java.lang.Long short - java.lang.Short void - java.lang.Void | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. Adapter. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Adapter object has a different input than the real subject whereas Proxy object has the same input as the real subject. Proxy object is such that it should be placed as it is in place of the real subject. | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. The Difference between these patterns in only the intent. Adapter is used because the objects in current form cannot communicate where as in Facade , though the objects can communicate , A Facade object is placed between the client and subject to simplify the interface. | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. It introduces a layer of adaptations before it reaches the final and desired interface. Moreover sometimes all requests are forwarded to adapter class. Some of such requests doesn't even require any sort of adaptions as they are qualified to call the final interface directly and introducing overheads. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Voltage converters / Power Adapters | ||||
![]() | ||||
![]() ![]() ![]() | ||||