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

Post New Answer

More Core Java Interview Questions

System.out.println("somestring"); It will create any object or not

5 Answers   CSC,


What does this mean java?

0 Answers  


What is meant by null and void?

0 Answers  


When do we use synchronized methods in java?

0 Answers  


What is nested class?

0 Answers  






Can we override protected method in java?

0 Answers  


Is java a virus?

0 Answers  


Explain public static void main(string args[]).

0 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.

0 Answers  


What is meant by method overriding?

0 Answers  


What is quick sort in java?

0 Answers  


How do you reverse a string in java?

0 Answers  


Categories