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

What is the syntax and characteristics of a lambda expression?

563


Explain about strings in java?

622


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?

714


when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???

1675


How do you add spaces in java?

516






What is use of inner class in java?

518


How do you check if two strings are equal in java?

589


Give a practical example of singleton class usage?

593


What is the purpose of format function?

630


What is the main functionality of the remote reference layer?

1420


Why is string buffer better than string ?

603


What is meant by singleton class?

604


Can we override private constructor in java?

509


Is empty list java?

527


How do you do exponents in java?

539