1 Answer - Sort by: Date | Rating
You can not change the main method name in Java.
If you change the main method compiler throws an error saying that main method not found. But you can change the string array name compiler will accept it. Even if you can write it as static public void
main(string rags[]) and you can't change string data type to any other data type also. You can't change the return type also.
If you change the main method compiler throws an error saying that main method not found. But you can change the string array name compiler will accept it. Even if you can write it as static public void
main(string rags[]) and you can't change string data type to any other data type also. You can't change the return type also.
1
0
- Are Current Java-oriented Mutation Testing Tools Adequate? And If Not, What Do They Require To Become Adequate? You Should Address This Question From Both A Test Case Evaluation And An Improving TDD Viewpoint.
- Which Act Had The Highest Number Of Christmas Number Ones?
- How To Create A Java Program That Accepts 3 Numbers?
- Can You Create A Java Program That Accepts 3 Numbers (num1, Num2, Num3) And Sort Them In Ascending And Descending Order?
- What Is The Un Theme Of The Year 2009?
- Write A Program To Display A String With An Embedded Quote:"Sachin Has Played A Game Of His Life"?
- Why Java Is Popular In Market?
- 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?
- 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?
- What Does Literati-on Mean?
- What Is Abstract Class In Details?
- How Do I Write A Java Program Without The Main Method?
- Does Every Java Program Include A Java Main Method?
- Can A Java Program Run Without A Main Method?
- Can We Change The Syntax For Main Method In Java\?
- What Is A Simple Java Program Of Array With Method?
- Why Cant I Create An Object For Main Method In Java?
- Why Should We Give String Arguments In Java Main Method
- Can A Java Program Has Multiple Main Classes?
- Can A Java Program Can Run Without Main Program? If Not Solve Me This Problem?

New Comment - Comments are editable for 5 min.