Answer Posted / prashant
Template pattern allows abstract representation of methods.
Implementation of these methods is left to the classes that
inherit these abstract methods. We define only a template
for the method without defining any algorithm
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Where to store local variables?
Is 0 an irrational number?
What is overloading and overriding in java?
What is a dot notation?
How do you convert boolean to boolean?
Name few java.lang classes introduced with java 8 ?
How many bytes is double?
What is an anonymous class in java?
Which is the best sorting technique in java?
What are JVM.JRE, J2EE, JNI?
What is regex in java?
Give some features of interface?
Does java return by reference?
Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.
How do I type unicode?