when i write that code the compiler doesnt give an error,also it is acceptable also what is the type of the myInstance(i.e Integer,String,or Object type?) and what is the default capacity of ArrayList if we dont explicitly specify?
[code]
ArrayList myInstance=new ArrayList ( );
[/code]