Answer Posted / harpreet
And to call the constructor of some other class, use super()
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain what is Marker interface?
How concurrent hashmap works?
what is the purpose of using rmisecuritymanager in rmi?
How can a gui component handle its own events in java programming?
What is constructor and its types?
What is exception in java?
What is the advantage of OOP in java?
What do you mean by Hash Map and Hash Table?
What is jpa specification?
What is java virtual machine? Explain
Can an interface extend another interface?
What is the base class of all classes?
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.
Is char a method in java?
Is space a string in java?