Can subclass overriding method declare an exception if parent class method doesn't throw an exception?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What is Three tier architecture. Can anyone explain with a Ordinary web application Project? (JSP,Servlets,JAVA,DAO) ?

3 Answers   TCS,


Can we create our own wrapper class in java?

0 Answers  


What are the various access specifiers in java?

0 Answers  


What is string and example?

0 Answers  


What are the two categories of data types in the java programming language?

0 Answers  






Is 0 a prime number?

0 Answers  


What is the difference between method and constructor ?

3 Answers  


Difference between process and thread?

0 Answers   HP,


What is method overloading and method overriding?

0 Answers  


What is a arraylist in java?

0 Answers  


What is a data structure java?

0 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.

0 Answers  


Categories