What are the differences between string and stringbuffer?
Explain different types of wrapper classes in java?
when should you use stringbuilder class in a program?
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.
How long will it take to learn java?
Can we overload the constructors?
What is the arraylist in java?
How does the java compiler work?
What do you understand by a Static Variable?
what is Portal(web based online portal)?
How do you escape sequences in java?
Do extraneous variables affect validity?
How can final class be used?