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

Answers were Sorted based on User's Feedback



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

Answer / ravikiran

void

Is This Answer Correct ?    14 Yes 0 No

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

Answer / rp

it's void means return no
value

Is This Answer Correct ?    4 Yes 1 No

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

Answer / 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

More Core Java Interview Questions

What is exception propagation?

0 Answers  


When does an object becomes eligible for garbage collection in java?

0 Answers  


What are different types of control structures?

0 Answers  


Why we use static and synchronized in method for single thread model example: public static synchronized add(){}

2 Answers  


What is a hashmap used for?

0 Answers  






Difference between association, composition and aggregation?

0 Answers  


Is Constructor possible in abstract class in java ?

0 Answers   HCL,


what is auto boxing

3 Answers   UHG,


wht is mean by dirty read?

1 Answers  


Why does java not support operator overloading?

0 Answers  


What is class??

0 Answers   Tech Mahindra,


What are library required to connect to excel sheet.

2 Answers   Cap Gemini,


Categories