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 down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.

2478


What is the relationship difference the canvas class and the graphics class?

800


What is mnemonic in assembly language?

805


Explain the overview of UDP messaging.

916


What is the difference between checked exception and unchecked exception?

774


Can long be null in java?

736


What are the differences between checked exception and unchecked exception?

744


What is stringwriter?

735


What do you understand by weak reference?

745


What is the loop in java?

798


What is class forname used for?

778


What is try-with-resources in java?

846


Is there a jre for java 11?

809


What is dynamic binding(late binding)?

792


What are keywords and reserved words in java?

784