public class demo
{
public static void main(String[] args)
{
int[] arr=new int[10]; //create array of 10(0-9) index to store integers
int arr[]=new int[10]; //create array of 10(0-9) index to store integers
}
}
Both of statments in main function are same in java we can use both of notations but i my self would prefer the first one to be used.
No comments:
Post a Comment