Answer Posted / reddy
JVM Automatically reclaims the memory used by an object.When
no variable is referred to that object.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain about varargs in java?
How does regex work?
Can constructor be static or final?
Explain about the main() method in java?
Why main method is static in java?
What is the numeric promotion?
What is default size of arraylist in java?
Can we override static methods in java?
What are the rules for naming an array?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an
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 the collection interface?
What is array list in java?
What is the purpose of format function?
Which is best ide for java?