Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Write a java program for binary search?

1126


What happens when I use / and % with a negative numerator?

1080


Can we print null in java?

1103


What is a memory leak in java?

1132


Why do we need hashmap in java?

1176


Why does java have different data types for integers and floating-point values?

1067


Variables used in a switch statement can be used with which datatypes?

1040


Can a class be declared as protected?

1059


What is meant by main method?

1119


Write a program based on Java script program.

1202


What is difference between iterator access and index access?

1112


What happens if constructor is private?

1074


Difference between static binding and dynamic binding?

1183


What is javac in java?

1056


What is thread synchronization in java?

952