My question is in java we know we can't create dynamic arrays , because when ever we are going to initialize values for array indexes before that we need to define the array size. But we all know that there is a java feature called variable length arguments ,which will create a dynamic array.
Best Ex:public static void main (String... args) So using this variable length arguments we can actually insert any amount of elements for the args array. What is this contradiction ,basic rules of java saying you can't and but another feature enables to do so.