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
What is Three tier architecture. Can anyone explain with a Ordinary web application Project? (JSP,Servlets,JAVA,DAO) ?
Can we create our own wrapper class in java?
What are the various access specifiers in java?
What is string and example?
What are the two categories of data types in the java programming language?
Is 0 a prime number?
What is the difference between method and constructor ?
Difference between process and thread?
What is method overloading and method overriding?
What is a arraylist in java?
What is a data structure java?
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.