Can a main method be declared final?
No Answer is Posted For this Question
Be the First to Post Answer
Can we have two methods in a class with the same name?
What are access specifiers in java ?
0 Answers Akamai Technologies,
what is the difference between String s="hello"; and String s=new String("hello");?
What is arguments in java?
what is Portal(web based online portal)?
What is the use of java?
Explain about fail safe iterators in java?
Hi Friends, can u give code to convert ArrayList to HashMap and HashMap to ArrayList.
Is java supports multiple inheritance? explain?
Why synchronization is important?
How do you declare a destructor 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.