What are multiple inheritances?
No Answer is Posted For this Question
Be the First to Post Answer
all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.
How do you override a private method in 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.
Explain the difference between an object-oriented programming language and object-based programming language?
Does A Class Inherit The Constructors Of Its Superclass?
Do we have pointers in java?
When is the finally clause of a try-catch-finally statement executed?
What are the advantages of encapsulation in java?
Can keyword be used as identifier?
What are class members by default?
Explain about narrowing conversion in java?
What is a protected void?