What is the return type of a program?s main() method?

Answer Posted / ashokmail

by default it is void and return null.
if return type is int , it returns 0 or 1 depends on the
program execution .

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

extending thread class or implementing runnable interface. Which is better? : Java thread

795


What are internal and external variables?

738


Can inner class have constructor?

766


What is the difference between a scrollbar and a scrollpane?

826


Can you explain inner class.

840


Using callable statement how can you pass out parameters, explain with example?

900


what is mena by object block any what is the use of that

1991


what is the difference between future and callable interface in java?

885


What does sizeof return?

771


What is tochararray in java?

716


What is treeset in java collection?

767


What is use of functional interface in java 8? Explain

782


Why super is first line in java?

834


Where is java located?

749


What is the use of toarray () in java?

797