how you will prevent inheritance is there any other way
other than inheritance?
Answer Posted / ravikiran
my marking the class as final
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between a choice and a list?
What is type safety in java?
What is initial size of arraylist in java?
What is the maximum size of hashmap in java?
What is jit compiler ?
Is arraylist an object in java?
What is local class in java?
What is a final class in java?
What is a ?
Give some features of interface?
Differentiate between postfix and prefix operators in java.
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.
What are the different tags provided in jstl?
What is sorting algorithm in java?
What is the abstract class?