if arraylist size is increased from initial size what is
the size of arraylist...suppose initial is 100 , if i add
101 element what is the size...
Answer Posted / srinu
Arraylist are growble nature.so present capacity of arraylist
100 then add an 101 element then that time current capacity
is formula
(101*3/2)+1=151
| Is This Answer Correct ? | 10 Yes | 6 No |
Post New Answer View All Answers
What are static blocks and static initalizers in java ?
What is the syntax and characteristics of a lambda expression? Explain
What exactly is java?
What is a wrapper method?
Explain inner classes ?
Does .length start 0 java?
Can you access non static variable in static context?
What is 16 bits called?
What is a java object and java application?
What languages are pass by reference?
How do weakhashmap works?
What are selection structures?
How you can force the garbage collection?
I want to print “hello” even before main is executed. How will you acheive that?
In a class implementing an interface, can we change the value of any variable defined in the interface?