Answer Posted / vino
wrappper class uses for primitive datatype act as object.
ex:int-Integer
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we have more than one package statement in the source file?
What happens when main () method is declared as private?
Explain covariant method overriding in java.
What is the main function in java?
Explain wait() method of object class ?
Can list contain null in java?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
What is flush () in java?
Why is the type for real numbers called double?
Can one thread block the other thread?
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 main function is static?
Enlist diffrent types of inheritance supported by java?
What is java dot?
How does java pattern compile work?