what is the Arraylist limit (maximum) by default ?

Answer Posted / shreya tanavade

Sorry fo r d mistake...Arraylist default capacity is 10...Aftr that wen you add the 11 th element its size increases by 50%....i.e...it becomes 15..and it goes on increasing as u go on adding...

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is int a class in java?

519


What is the reflection?

555


How do you write a conditional statement?

511


Is java code slower than native code?

549


What is the method in java?

588






What is ++ a in java?

561


Difference between predicate, supplier and consumer ?

569


What happens if an exception is not handled in a program?

614


What is the importance of finally block in exception handling?

530


What are the supported platforms by java programming language?

551


What is a functional interface?

537


What is the declaration statement?

501


What is treemap in java?

543


Can this keyword be used to refer static members?

540


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

585