Why we override equals() method?
No Answer is Posted For this Question
Be the First to Post Answer
Does constructor be static?
what is difference between abstract factory and factory design patterns?
What is meant by main method?
what is difference Between Core Java and advance java
60 Answers HCL, HP, Sambalpur University, TCS, Vensai Technologies, Wipro,
What is percentage in java?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
Explain super keyword in java.
How does arraylist work in java?
How can we make string upper case or lower case?
Explain when classnotfoundexception will be raised ?
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.
What are the two types of java programming?