What is delegation?



What is delegation?..

Answer / Shweta Srivastava

"Delegation" in J2EE refers to a design pattern where an object passes a request to another object for handling, rather than performing the action itself. This allows objects to specialize in their own responsibilities.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More J2EE Interview Questions

What are java front end tools?

1 Answers  


Hi friends, can u explain Transparent Persistence in hibernate with sample code.

2 Answers  


What does j2ee stand for?

1 Answers  


What do you understand by connector?

1 Answers  


servlet has not any main method in it how does it work by JVM?

7 Answers  


Give some advantages of orm (object-relational mapping)?

1 Answers  


Write a program for Sum of the digits for a given number Ex: suppose user entered Number is 1214, It should calculate the above number like 1+2+1+4 = 8

2 Answers   Amazon,


What is delegation?

1 Answers  


Describe orm?

1 Answers  


Why is java called object oriented?

1 Answers  


Is core java and j2se same?

1 Answers  


public class ActionSearchBean extends GenericSearchBean<ActionDTO, Long, ActionDTO> { @Override public String search() { data.setRowCount(null); if(data.getRowCount()==0){ data.getNoRecordFound().setRendered(true); data.getDataScroller().setRendered(false); } return "searchAction"; } @Override public String clear() { data.setRowCount(null); if (data.getRowCount() > 0){ data.getNoRecordFound().setRendered(false); data.getDataScroller().setRendered(true); }else{ data.getNoRecordFound().setRendered(true); data.getDataScroller().setRendered(false); } data.setModel(new ActionDTO()); data.setRowCount(null); return "searchAction"; } } what is the purpose of @Override ...what will do @Override here ?

1 Answers   Sony,


Categories