Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Programmer Certification (OCPJP)
Generics Question
Chandana Garlapati
Ranch Hand
Posts: 97
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This is the question from Whizlabs...
Drag and drop the appropriate code excerpts into the empty boxes provided in the given code so that it compiles and runs without warnings or errors.
List<Integer> c2 = new
Vector<Integer> ();
why it cant be
List<Integer> ();
???
can any one help me??
Punit Singh
Ranch Hand
Posts: 952
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
what is List ?
SCJP 6
Chandana Garlapati
Ranch Hand
Posts: 97
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It is an interface..
what do you mean i didn't get you??
Punit Singh
Ranch Hand
Posts: 952
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You cannot use new with interface.
SCJP 6
Chandana Garlapati
Ranch Hand
Posts: 97
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
oh it's my bad.. i know it..
Thanks Punit
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Generic types
Explanation required for this answer
Generic method question
Doubt on a K & B SCJP5 guide question: GENERICS
meaning of double angle brackets(<< >>) in Generics?
More...