Difference between array and arraylist.
Answer Posted / karunakar
Array is the collection of values of the same data type
>the variables in an array is called array elements
>Array is a reference type data type
>The array structure in System's Memory
Array list is a class .
when you want to access the elements of an array through its
index value location in an array,use an ArrayList.
The use of the arraylist is an alternative to the use of th
array.
The Methods Of ArrayList class are
1)Add
2)Remove
3)Clear
4)Insert
5)TrimToSize
6)Sort
7)Reverse
| Is This Answer Correct ? | 47 Yes | 12 No |
Post New Answer View All Answers
What is a class variable?
How do you do a line break in java?
Can inner class have constructor?
What is stringreader?
Can we instantiate interface in java?
Why webdriver is an interface?
What is an escape character in java?
What is functional interface in java example?
How define set in java?
What is the buffer limit?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
Can you declare a private method as static?
What is string array?
What does sizeof return?
How does the java compiler work?