Java - Interview Questions and Answers on Proxy

Q1.  Difference between Proxy and 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.

Q2. What is the package name for Proxy class?