Design - Interview Questions and Answers for 'Proxy' | Search Interview Question -

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.
Label / Company      Label / Company / Text


Design - Interview Questions and Answers for 'Proxy' - 2 question(s) found - Order By Newest

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

 Q2. Can we declare Entity class as final ?Hibernate
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

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: