Brief description  about Online courses   join in Online courses
View Benila  Rose 's Profile



Please someone give me the answer

When i start to study Arrays, i coudn't study further becoz i stuck with many questions.

1. Public static void main(String[] args)
Everyone knows the above statement is main method. But my question is Why we are writing this statement for all programs? What is the use of this statement especially (String[] args)

2. int[] ExampleArray
What is meaning of the above statement?

3. Please Anyone can explain the following program

class CopyArrayExample {
public static void main(String[] args) {
char[] copyFrom = { 'S', 'I', 'L', 'I', 'C', 'O', 'N',
'I', 'N', 'D', 'I', 'A'};
char[] copyTo = new char[7];

System.arraycopy(copyFrom, 7, copyTo, 0, 5);
System.out.println(new String(copyTo));

Thank you in advance

Here are my questions
Asked by Benila Rose | Sep 22, 2014 |  Reply now
Replies (0)