Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Design - Interview Questions and Answers for 'Proxy' - 2 question(s) found - Order By Newest | ||||
| ||||
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. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   design pattern   proxy   adapter   proxy vs adapter expert | ||||
Related Questions | ||||
What are the Wrapper classes available for primitive types ? | ||||
What Design pattern Wrapper Classes implement ? | ||||
Difference between Adapter and Facade ? | ||||
What are the disadvantages of Adapter Design Pattern ? | ||||
What could be the real world example of Adapter Design Pattern ? | ||||
| ||||
Ans. Yes but as Hibernate creates the Proxy Classes inherited from the Entity Classes to communicate with Database for lazy initialization. Declaring entity classes as final will prohibit communication with database lazily and hence will be a performance hit. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  hibernate   proxy objects   proxy classes   entity hibernate | ||||
Related Questions | ||||