What error occurs if a try-catch-finally statement sequence
does not have a catch clause?
Answer Posted / nagaraju
we can have try block with out catch block, but we should
have finally block after try block(if catch block is not
there). If any exception occurs in the try block or not
finally block will be executed.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
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 are 4 pillers of object orinted programming?
Can a main method be overloaded?
What is class forname used for?
How does class forname work in java?
What are the skills required for core java?
What is an immutable class?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
How do you check if a number is a perfect square?
What is the difference between checked exception and unchecked exception?
What is the difference between hashmap and hashtable? What is an interface?
Explain how to convert any java object into byte array.
How many types of the indexof method are there for strings?
Is java an ide?
What is the similarity between dynamic binding and linking?