answersLogoWhite

0


Best Answer

Actually speaking - Nothing. The Java program will start running. The args is just an optional parameter and you can pass it if you want and ignore it if you dont want to pass any runtime arguments

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

g

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What if you do not provide the string array as the argument to the method?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the argument of main()method?

In Java, the main() method is typically written something like this:public static void main(String [ ] args)The argument is what is in parentheses, in this case: "String [] args". I believe this can also be written as "String args[]". It refers to parameters received by the Java program from the command line. That is, the user can write, for example:java MyClass info1 info2In this example, "info1" and "info2" will be received by the main method, in the args[] array.


What will happen if a String array is not provided as the argument to the main method in Java EE?

java takes command line arguments from user so as to execute the program,that's why we always mention arguments for main() , now java always assumes that the argumetns are of String type which may be appropriately converted to any other type later. that is why we pass string array to hold the command line argumetns supplied by the user.


How do you write method pubic boolean containsString s Return whether the given string is in the array or not?

Return an iterator to the string if it exists, or the container's end iterator if it does not.


How many constructors are there for the string class?

The String class has multiple Constructors. Some of them are: 1. String - new String(String val) 2. Character Array - new String(char[] array) 3. Character Array with index positions - new String(char[] array. int start, int end)


How do you convert a string into a character array?

A string is, by definition, a character array. No conversion is required.

Related questions

What do string and vector and array all inherit from that has the size method so you can take it as an argument?

string, vector and array do not have a common base class. Overload your function to accept either a string, a vector or an array.


How do you separate a word using a string method?

The string class has a split() method which takes a regex pattern and splits the string and returns an array.


What is the argument of main method?

In Java, the main() method is typically written something like this:public static void main(String [ ] args)The argument is what is in parentheses, in this case: "String [] args". I believe this can also be written as "String args[]". It refers to parameters received by the Java program from the command line. That is, the user can write, for example:java MyClass info1 info2In this example, "info1" and "info2" will be received by the main method, in the args[] array.


How do you send an array of strings with a signal in Dbus with Glib bindings?

Arrays are passed as arguments to method parameters. To pass a string array from one activity to another the code is [] stringArray = intent.getStringArrayExtra("string-array");.


What is the character string usually called?

I think, array of string type object in java.actually java take any command line argument in stringformat. bydefault


What is the argument of main()method?

In Java, the main() method is typically written something like this:public static void main(String [ ] args)The argument is what is in parentheses, in this case: "String [] args". I believe this can also be written as "String args[]". It refers to parameters received by the Java program from the command line. That is, the user can write, for example:java MyClass info1 info2In this example, "info1" and "info2" will be received by the main method, in the args[] array.


What is (string args) in java?

In Java, the main() method is typically written something like this:public static void main(String [ ] args)The argument is what is in parentheses, in this case: "String [] args". I believe this can also be written as "String args[]". It refers to parameters received by the Java program from the command line. That is, the user can write, for example:java MyClass info1 info2In this example, "info1" and "info2" will be received by the main method, in the args[] array.


What will happen if a String array is not provided as the argument to the main method in Java EE?

java takes command line arguments from user so as to execute the program,that's why we always mention arguments for main() , now java always assumes that the argumetns are of String type which may be appropriately converted to any other type later. that is why we pass string array to hold the command line argumetns supplied by the user.


How do you write method pubic boolean containsString s Return whether the given string is in the array or not?

Return an iterator to the string if it exists, or the container's end iterator if it does not.


What is the array of string in c?

A string in C is stored in a 1 dimension array so an array of strings is simply a two dimension array.


How many constructors are there for the string class?

The String class has multiple Constructors. Some of them are: 1. String - new String(String val) 2. Character Array - new String(char[] array) 3. Character Array with index positions - new String(char[] array. int start, int end)


How do you convert a string into a character array?

A string is, by definition, a character array. No conversion is required.