Answer Posted / praveen
A method is set of properties or behaviour of Datamember
and colletion of operations of perticuler class
methods are two types istance and static
we can call the methods directly with using static keyword
in static methods
we can call the instance methods by using creating of
object of the class
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
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.
Why 1 is not a prime number?
what is the difference between process and thread? : Java thread
What is the difference between the ">>" and " >>>" operators in java?
Why declare Main() inside the class in java ?
What are untrusted applets?
What does business logic mean?
What is the method to expand and collapse nodes in a jtree?
Is age a discrete variable?
Explain about version control?
What do you mean by exception handling in Java?
What is boolean used for?
Can you explain inner class.
Is a copy constructor?
Can we serialize arraylist in java?