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 the purpose of interface?

0 Answers  


Differentiate between stringbuffer and stringbuilder in java.

0 Answers  


What should I import for arraylist in java?

0 Answers  


Can we override constructor in java?

0 Answers  


what is the use of abstract class and interface with example?

2 Answers   Cycore, DNS, Technoram,






Can multiple catch statements be used in exceptions ?

6 Answers   Wipro,


Difference between error and exception

3 Answers   Nous, TCS,


How to print nodes of a Binary tree?

1 Answers   TCS,


Define reflection.

0 Answers  


Where is jre installed?

0 Answers  


How many ways can we create singleton class?

0 Answers  


What happens to the Exception object after handling an exception?

0 Answers  


Categories