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

Can set contain duplicates?

538


Explain the features of java?

586


What’s the difference between unit, integration and functional testing?

610


how to open and edit XML file in Weblogic???

1541


What is length in java?

566






Does garbage collection occur in permanent generation space in jvm?

600


Which is better 64 bit or 32 bit?

505


What does three dots mean in java?

641


What are the major drawbacks of external iteration?

570


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

829


What is import java util arraylist?

650


Distinguish between a predicate and a function?

563


What is finally and finalize in java?

590


What is prime number in java?

532


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

546