When we r go to abstract class and when we go to Interface? i have confusion this question while in interview plz clarify
3 6991Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
2774
What do you mean by inner class in java?
What is runtime polymorphism or dynamic method dispatch?
Can you extend main method in java?
How do you compare two strings lexicographically?
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.
Garbage collection in java?
Why unicode is important?
What are the topics in core java?
What is use of a abstract variable?
What is meant by attribute?
What is the function of character?
How list contains works in java?
Why is multiple inheritance not supported in java?
What does @param args mean in java?
What is final modifier?