Difference between array and arraylist.

Answer Posted / nagarjunareddy.sannapareddy

array is a collection of similar type of data and the
capacity of array is fixed and it define with in system name
pace
array list it hold different type of data and the capacity
of hairstylist is increase dynamically it define withe in
system.collections name space

Is This Answer Correct ?    29 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unmodifiable collection in java?

505


What are the important methods of java exception class?

569


What is difference between local variable and global variable?

469


What is parsing in java?

527


What is vector capacity in java?

593






What does arrays sort do in java?

536


what is the difference between thread and runnable types? : Java thread

542


Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.

1586


explain the concept of virtual method invocation in polymorphism in detail?

1712


Can array grow dynamically in java?

518


What does opcode mean?

533


How do you do absolute value in java?

523


How do you initialize an arraylist in java?

509


Explain the significance of listiterator.

582


What is the meaning of variable in research?

555