Difference between array and arraylist.
Answer Posted / priya
Simply,
Array is static ie, Size Does not grow, its fixed
ArrayList is dynamic, By adding values, it grows
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
Is empty .java file name a valid source file name?
What does you mean in math?
What are the difference between string, string builder, and string buffer in java?
What is class and object in java?
What advantage do java's layout managers provide over traditional windowing systems?
Why is java architectural neutral?
Where local and global variables are stored?
Can singleton class be serialized?
Which is a valid identifier?
How will you load a specific locale?
What is scanner in java?
Explain the difference between arraylist and linkedlist in java?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What is quick sort in java?