Is it possible to write method inside method

Answer Posted / divya

no,it's not possible to write method inside a method.it
will gives an error illigal starts of expression

Is This Answer Correct ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

689


How do you sort an array in java?

527


What are keyboard events?

598


If an object is garbage collected, can it become reachable again?

527


Difference between this() and super() ?

562






What is the concept of multithreading?

510


What is singleton class and how can we make a class singleton?

650


What two classes are used to read data only?

621


What does substring mean?

495


What is nextint java?

536


Why can we not override static method?

579


Explain the init method?

522


Can bool be null?

511


Which is faster set or list in java?

513


Can we write method inside a method in java?

514