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 is the constructor and how many types of constructors are used in java?
What is method overloading with type promotion?
Which language is java?
What is the purpose of using the java bean?
What is constructor chaining and how is it achieved in java?
Which class cannot be a subclass in java?
What is * argv?
What is the purpose of a volatile variable?
List implementations of list interface?
what is the swingutilities.invokelater(runnable) method for? : Java thread
What are the types of strings?
What is the difference between serial and throughput garbage collector?
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.
Define locale.
What is math floor in java?