2 Answers - Sort by: Date | Rating
HI
main() method is the entry point of a program in almost all major languages such as java, c, c++, C#, VB.net, python etc. This is where run-time starts executing the program. C++ have various overloaded main functions, such as
int main()
void main()
void main(int argc, char **argv)
int main(int argc, char **argv)
you can use either that suits your implementation whether you want to read command line arguments or not.
Regards
Farah Khan
main() method is the entry point of a program in almost all major languages such as java, c, c++, C#, VB.net, python etc. This is where run-time starts executing the program. C++ have various overloaded main functions, such as
int main()
void main()
void main(int argc, char **argv)
int main(int argc, char **argv)
you can use either that suits your implementation whether you want to read command line arguments or not.
Regards
Farah Khan
1
0
Void main()in this void is return type that means no value is return to the main method.main() is for telling to the compiler to start the programme Execution from here.
1
0
- How Can I Use Dmp File In Java?
- Can You Write A Program Called InheritanceTest.java To Support An Inheritance Hierarchy For Class Point–Square–Cube?
- Why We Use This Method In Java?
- Why Java Not Supports Multiple Inheritence?
- A Java Program To Get Sports Marks In Student Package And Print Total Marks Of Student?
- The Project Aims To Implement A JAVA Parser? 1- Classes And Functions 2- Arithmetic/logic Expressions 3- If Statement
- How To Get Java On My Lg 260?
- Write A Java Program To Store A Number Find If It Is Positive Or A Negative Number If Positive Print I Am The First?
- How To Update The Sim 3 Expansion?
- What Is An Attribute In Java?
- Do I Have To Write A Main Method In Every Class I Create?
- What How The Step For Make Library Management?
- In Which Process We Can Start Java?
- Define The Concept Of Java Byte Code?
- How To Run Remote Method Invocation In More Machine?
- How To Run Java Remote Method Invocation In More Machine?
- How To Make A Java Program That Will Ask The User To Input A Number And Display All The Even Number And The Sum Of All Even Numbers Based On The Inputted/ Given Numbers?
- Is A Static Variable An Instance?
- How To Compile And Run Java Package?
- What Does Literati-on Mean?
- What Is Abstract Class In Details?
- What Is Meant By Remote Method Invocation In Java?
- What Is Meant By Servlet In Java?
- What Is Latest Technologies In Java?
- Write A Program Using Do…..while Loop To Calculate And Print The First M Fibonacci Numbers?
- What Is Mean By Void Main() In C?what Is Its Use?
- What Does Void Main Mean In C++?
- Why Do We Use Void Main() In C-language & What Its Meaning?
- Why Are You Using Public Void Main[string Args[]?
- Why We Use Public Static Void Main In Java?
- Why Do We Use "Public Static Void Main(String[] A)" In Java?
- It's A C#program. What Does This Actually Mean Static Void Main(string[] Args). What Will It Do?
- Why We Uses Public Static Void Main(String Args[])?
- What Is The Meaning Of Public Static Void Main() In Java?

New Comment - Comments are editable for 5 min.