aspose file tools*
The moose likes Beginning Java and the fly likes asking about util plz help me out!!!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "asking about util plz help me out!!!!!!!" Watch "asking about util plz help me out!!!!!!!" New topic
Author

asking about util plz help me out!!!!!!!

kumar abhay
Ranch Hand

Joined: Oct 02, 2001
Posts: 53
hi there,
hope u r doin' fine.here r list of questions given below:
Question 1:
Vector is the class of collection n data structure being used by vector is "array".
my question is that if it's array then how it's extensible(bec usually array does not exceed its size n in vector its extensible).
Question 2:
can we use data structure in a interface if yes then how it can be.n if we use data structure in
a interface,wont it be constant.this is making confusions so plz help me out.
thanks in advance
with regards
kumar abhay
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
1) Take a look at source of Vector to see how it is done. The sources of the java classes are typically coming with each JDK in a src.jar or src.zip file.
2) It is not possible to declare a non-public, non-static, non-final field in an interface.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Roberto Ingunza
Greenhorn

Joined: Mar 12, 2002
Posts: 4
Use an Abstract class either. It suits your interests better.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

Whenever the capacity of the array gets filled a new array is created (double the size or increment value specified) and contents of the old array are copied to the newly created array.


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: asking about util plz help me out!!!!!!!
 
Similar Threads
database
how to do this ?? should i use array or vector..
Differences beteween ArrayList and Vector.
"Position" Concept as it applies to Data Structures
Collection