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


Please Help Members By Posting Answers For Below Questions

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.

1576


What are 4 pillers of object orinted programming?

572


Can a main method be overloaded?

563


What is class forname used for?

532


How does class forname work in java?

472






What are the skills required for core java?

530


What is an immutable class?

604


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

521


How do you check if a number is a perfect square?

506


What is the difference between checked exception and unchecked exception?

516


What is the difference between hashmap and hashtable? What is an interface?

494


Explain how to convert any java object into byte array.

539


How many types of the indexof method are there for strings?

481


Is java an ide?

516


What is the similarity between dynamic binding and linking?

600