Answer Posted / ravikiran(aptech mumbai)
A method is used to write the functionality with in a class
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is data movement?
How can we access some class in another class in java?
Implement a stack with push (), pop() and min() in O(1) time.
What are some characteristics of interference class?
Can memory leak happen java?
What is use of super keyword in java?
What is string args [] in java?
Which package is imported by default?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What was java originally called?
What is a singleton factory?
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 is the mapping mechanism used by java to identify IDL language?
Which number is denoted by leading zero in java?
What is the largest number a double can hold?