Answer Posted / ravikiran(aptech mumbai)
finally is used to conserve the resources after the
exception is raised
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
When is the finalize() called?
Is class is a data type?
What do you understand by casting in java language?
Can we write class inside a class in java?
What is data string?
What is java dot?
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 maximum size of array in java?
Does A Class Inherit The Constructors Of Its Superclass?
How define set in java?
What is stream api in java8?
What is the hashcode () and equals () used for?
Explain the difference between string, stringbuffer and stringbuilder in java?
Similarity and difference between static block and static method ?
Can you override static methods?