Question

True or False: One of the differences between an array and ArrayList is that arrays have...

True or False: One of the differences between an array and ArrayList is that
 arrays have dynamic length and ArrayList variables have fixed length.

Homework Answers

Answer #1

answer is false .. the arrays have dynamic length and arraylist variable have fixed length ,,,

Array : array is the collection of similiar data type or object ... the arrays have the fixed length , which defines compile time ,,,

syntax -

String array[]=new String[5];

ArrayList : is a class of Collections ,, The ArrayList have the dynamic length of size,, and can hold multiple datatypes or object ,,,

ArraytList list=new ArrayList();

hey here i am done ,, i hope your query will clear now.. Please give me a like to appreciate my work and efforts....

Thank You ! Dont forget to like !

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Java State true or false: If a[] and b[] are two integer arrays, the expression a...
Java State true or false: If a[] and b[] are two integer arrays, the expression a == b compares the array elements.
3. With respect to arrays, establish the relationship between the size of the array and the...
3. With respect to arrays, establish the relationship between the size of the array and the time it takes to perform an insertion at the end of the array. Provide empirical evidence to support your answer.
4. With respect to arrays, establish the relationship between the size of the array and the...
4. With respect to arrays, establish the relationship between the size of the array and the time it takes to perform an insertion at the beginning of the array. Provide empirical evidence to support your answer.
True for false An arraylist is a statically allocated data structure (true/false) Program efficiency is best...
True for false An arraylist is a statically allocated data structure (true/false) Program efficiency is best calculated by counting the execution times of programs(true/false) There are algorithms that are cheaper, hence faster than O(N2) when sorting a highly unsorted list(true/false) Java handles cleanup of unreferenced objects in memory automatically (true/false)
In the following C code, Which variable if NOT of primitive data type? A. a B....
In the following C code, Which variable if NOT of primitive data type? A. a B. b C. c D. d int a = 10; double b = 20.0; float c = false; char d[5] = "Hello"; // here we define a string In programming language C, the implementation of a string data type is limited dynamic length, which means the length of a string variable is fixed once it has been defined. A. True B. False In C# programming...
True or False for C++: A pointer can be used to iterate over an array using...
True or False for C++: A pointer can be used to iterate over an array using pointer arithmetic Variables are created and stored in the stack unless the new keyword is used. Variables are created and stored in the heap unless the new keyword is used.
USING JAVA ONLY Merge two 1D arrays into a single array. take one value from each...
USING JAVA ONLY Merge two 1D arrays into a single array. take one value from each array at a time. Sample: array 1: 1,2,3,4,5 array 2: 2,4 new array: 1,2,2,4,3,4,5
Just give answer no need to exmplain. ___________ implements the IList interface? Stack ArrayList Queue Hashtable...
Just give answer no need to exmplain. ___________ implements the IList interface? Stack ArrayList Queue Hashtable How can we decrease the Capacity of Collection Calling TrimToSize method Calling Clear method Setting Capacity explicitly Option 4 Calling TrimExces Which of the following collections operate based on Key ArrayList Hashtable SortedList Stack Which of the following are true about the ArrayList ArrayList can dynamically grow in size ArrayList are of fixed size ArrayList is used for managing KeyValue pair Protected members of...
a correlation of 0.03 is considered to be a null one        true or false an strong...
a correlation of 0.03 is considered to be a null one        true or false an strong correlation between two variables establishes a cause and effect relationship between them       true or false a positive correlation is also known as direct        true or false if r=1 then all points in the scatter diagram are over the line of regression    true or false
True or False A dictionary is a random-access data structure. An array is a sequential access...
True or False A dictionary is a random-access data structure. An array is a sequential access data structure. Using functions to isolate code is a good programming practice. Lexicographical ordering starts by comparing the first letters of two strings to determine the order. Standard Input in Perl and Python is the keyboard. Standard Output in Perl and Python is the printer. The character “!” comes after “M” in the ASCII table. Regular expressions are used to process text. In Perl,...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT