In what type of questions String [] args are used in Java ? pls help me out ...
I don't want the definition . I just want when it is used . It is urgent .
Answers
Answer:
Strings, which are widely used in Java programming, are a sequence of characters. In the Java programming language, strings are objects. The Java platform provides the String class to create and manipulate strings.
Explanation:
hope it helps u
hay u know comments are banned
String[ ] args as the name suggests is used to accept String arguments from the command line.
Its mostly used for in complied Java classes for command line operations.
Also the [ ] (square brackets) indicate that it is an array of String data type.
Arrays
Arrays are collection of elements of homogeneous type (of same data type) collected as a single unit and the occuring at contagious (at the same place or in a linear fashion) location in the memory, referred by a single variable with index to refer to positions of each element.
Syntax -
type [ ] array-name;
array-name = new type [size];
or,
type [ ] array-name = new type [size];
For example,
int [ ] numbers = new int [10];
This, creates an array of 10 integers.
The questions that can be asked from Arrays are sorting, searching, and simple manipulation of array elements.
As Double Dimensional Arrays (DDA) are removed from syllabus this year so, I haven't mentioned it.