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 Layout for ToolBar?

1 Answers  


Is java code slower than native code?

0 Answers  


How does Vector implement synchronization?

4 Answers   Ness Technologies,


what is session facade ?

3 Answers  


Why local variables are stored in stack?

0 Answers  






How to do a true java ping from windows?

0 Answers  


why we write public static void main (String args[]) in core java plz explain briefly??????????????????

3 Answers   HCL,


Program to print 1 1 2 1 2 3 1 2 3 4 like that

8 Answers   Huawei,


What package is math in java?

0 Answers  


what are three ways in which a thread can enter the waiting state? : Java thread

0 Answers  


84. try { 85. ResourceConnection con = resourceFactory.getConnection(); 86. Results r = con.query(”GET INFO FROM CUSTOMER”); 87. info = r.getData(); 88. con.close(); 89. } catch (ResourceException re) { 90. errorLog.write(re.getMessage()); 91. } 92. return info; Which is true if a ResourceException is thrown on line 86? 1 Line 92 will not execute. 2 The connection will not be retrieved in line 85. 3 The resource connection will not be closed on line 88. 4 The enclosing method will throw an exception to its caller.

1 Answers  


Can we sort set in java?

0 Answers  


Categories