ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Howmany number of objects we can store in an ArrayList. Is 
there any limit?
 Question Submitted By :: Ravurivinod
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Howmany number of objects we can store in an ArrayList. Is there any limit?
Answer
# 1
the size we specify is the limit
 
Is This Answer Correct ?    2 Yes 4 No
Sri
 
  Re: Howmany number of objects we can store in an ArrayList. Is there any limit?
Answer
# 2
The size will be as equal to int size.
 
Is This Answer Correct ?    0 Yes 6 No
Chandrashekhar
 
 
 
  Re: Howmany number of objects we can store in an ArrayList. Is there any limit?
Answer
# 3
there is no restriction to store object in arraylist.it's 
default size is 10.wenever it's reaches the maximum size 
it's increase size(current capacity*3/2+1).
 
Is This Answer Correct ?    2 Yes 1 No
Rajender
 
  Re: Howmany number of objects we can store in an ArrayList. Is there any limit?
Answer
# 4
no limit
 
Is This Answer Correct ?    5 Yes 0 No
Sakthivel(gceb)(n.p)pollachi
 
  Re: Howmany number of objects we can store in an ArrayList. Is there any limit?
Answer
# 5
Array list size will increase dynamically.By default we can 
store 16 objects.If number of objects increases the 
arraylist size increase dynamically as below.
 (2*Prevous size+2)
For ex: (2*16+2)=34 next time 
        (2*34+2)= 70
 
Is This Answer Correct ?    1 Yes 0 No
Abdul
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Can you call a constructor within a constructor?  6
Thanks A.jyotsna, Can u tell me differnce between abstract class and interface vikash  3
Which method will get invoked first in a stand alone application?  1
What is the purpose of the File class?  2
waht happens when a return type ,even void is specified for a constructor?  10
What is a native method?  2
Explain about GridBag Layout?  1
What is the preferred size of a component?  1
why interfaces are faster than abstract classes?  2
what are the different access specifiers that can be used by interfaces and abstract classes? can anyone give me detailed description on this  7
Does java support multi dimensional arrays ?  4
for what purpose we use applets ? Mindlogicx2
what is ennumaration? AMDOC1
What are hot spots in Java programming?  1
How to make a class immutable? Bosch6
Why Java is not purely object oriented? Persistent21
How do you relate a Interface to a Class? Tell me in Detail?  4
How Array List can be Serialized. Polaris5
we have two threads..both the threads are reading the data.. is there any need of synchronization there?...justify it? IBM4
How can you reverse a string?  4
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com