Java J2EE (14736)
J2ME (151)
Java Related AllOther (507)
What is set in java?
What are some disadvantages of storing session state in cookies?
Why it called struts?
How do I remove a character from a string in java?
What are passing parameters?
How can we perform any action at the time of deploying the project?
what do you mean by marker interface in java?
Why would you use an orm?
What about abstract classes in java?
What is the static block?
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 is bidirectional and unidirectional?
What is the argument in java?
How do you set the classpath ?
What is the benefit of using enum to declare a constant?