Hi, its a basic Question, If we see the Java Api docs provided by sun for java.util.Vector In this there they have defined a protected field called as "elementCount" Can anyone just tell how i can use this. say in a simple programm pls provide sample if possible. thanks
The only time you would use this field is if you were writing a class that extended Vector and changed its behavior somehow, and in doing so, you needed to know that number of elements held by the Vector. Extending Vector isn't something you're likely to want or need to do.
thanks a lot, Actually even i hadimported the java.util.vector class i was not able to use this field, later i came to know since its a protected field so we must need to extend vector class to access this. thanks a lot for ur reply.
If you're gonna buy things, buy this thing and I get a fat kickback: