Is map sorted in java?
what is interface in java? Explain
Tell us something about an iterator.
Can we define static methods inside interface?
Is string is a data type in java?
What is difference between add() and addelement() in vector?
What does \ mean in regex?
How does hashset work in java?
What is meant by attribute?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
What does string mean in java?
Is list thread safe in java?
Can you explain the usages of class.forname()?
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.
Can we declare a constructor as final?