Difference between array and arraylist.
Answer Posted / brijendra kumar soni(xavient)
Array is the Coolection of similar type of object.the size
of array is fixed while Array list is the collection of
different data types and the size of array list is growable.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain the selection sort algorithm?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
If you do not want your class to be inherited by any other class. What would you do?
Is singleton a bad practice?
What are "methods" and "fields"?
What is role of void keyword in declaring functions?
What are implicit objects in java?
Where is const variable stored?
Can we catch more than one exception in a single catch block?
How to stop a thread in java? Explain about sleep () method in a thread?
How many bits is a char?
Why do we use string?
How do you clear a method in java?
Can this keyword be used to refer static members?
Difference between throw and throws?