Difference between array and arraylist.

Answer Posted / mohit

1-array is used for value type. but array list is used for reference type.
2-array is used for fixed size but aaray list is dyanamically increase at run time.
3-you can't resize an array but you can do resize the array list.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain restrictions on using enum?

635


What is the abstract class?

599


What is a Null object?

892


what is the significance of listiterator in java?

624


What about interthread communication and how it takes place in java?

551






Is java a security risk?

566


Is sizeof a keyword in java programming?

614


What is JVM and is it platform independent?

563


What does the @override annotation do?

563


What is the difference between a window and a frame in java programming?

598


How do you change an int to a string?

549


Is Java a dying language?

577


What exactly is a .class file?

581


What is treemap in java?

556


Why does java not support pointers?

556