Answer Posted / nitin panwar
Bcoz each subclass executes the superclass constructor
before executing own constructor,thats why abstract class
has a constructor .
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is string data?
Define interface in java?
What are different types of expressions?
What purpose do the keywords final, finally, and finalize fulfill?
What variables are stored in stack?
What is a arraylist in java?
Explain creating threads by implementing runnable class?
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.
How the metacharacters are different from the ordinary characters?
Does java arraylist maintain insertion order?
What is a buffer in java?
what is thread? What are the high-level thread states? : Java thread
What is the base class in java from which all classes are derived?
Can we override compareto method?
How do you identify independent and dependent variables?