Justify your answer that you can't define a method inside another method in java, if you can then how?
No Answer is Posted For this Question
Be the First to Post Answer
System.out.println("somestring"); It will create any object or not
What does this mean java?
What is meant by null and void?
When do we use synchronized methods in java?
What is nested class?
Can we override protected method in java?
Is java a virus?
Explain public static void main(string args[]).
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 meant by method overriding?
What is quick sort in java?
How do you reverse a string in java?