• Post Reply Bookmark Topic Watch Topic
  • New Topic

Collection & ArrayList  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have one small query, what is the difference between following two statments:

1. ArrayList mydata = new ArrayList();

2. Collection mydata= new ArrayList();

Any help would be appreciated.

Thanx in advance.
 
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this link
 
ppavya india
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Mani, thanx a lot and looking for your help in future also.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ppavya ppavya,

Welcome to JavaRanch!

We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.

I'm thinking that "ppavya ppavya" isn't your real name. Perhaps you could use something different for either the first or last part.

Thanks Pardner! Hope to see you 'round the Ranch!
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!