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 java volatile?

0 Answers  


In Serialization, whether you will use Static variables?

3 Answers   HCL,


How to sort list of list in java?

0 Answers  


Define max and min heap, also the search time of heap.

0 Answers   GrapeCity,


Write a program to show whether a graph is a tree or not using adjacency matrix.

0 Answers   Amazon,






What is super?

0 Answers  


Is java is a fully object object oriented language?

31 Answers   TCS,


What is abstraction with strong example program? (not a general program)

3 Answers  


Is alive method in java?

0 Answers  


How to sort numbers in java without array?

0 Answers  


How do you check if a number is a perfect square?

0 Answers  


Can you sort a list in java?

0 Answers  


Categories