Difference between vector and arraylist.
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 output buffer?
What is int argc char * argv?
Explain an algorithm to find depth of a binary tree.
How do you create a method in java?
Write the algorithm to check the number non-leaf nodes in a tree.
What are loops in java?
Is hashmap thread safe?
What is string pool in java?
What is singleton class and how can we make a class singleton?
What are actual parameters?
What is stream api in java8?
What are void methods?
What is a condition in java?