File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Certification
»
Programmer Certification (SCJP/OCPJP)
Author
generics problem
geet kaur
Ranch Hand
Joined: Sep 03, 2008
Posts: 78
posted
Sep 16, 2008 11:40:00
0
ArrayList<Car> a = new ArrayList<Car>(); a.add(new Car()); ArrayList b = a; ArrayList<Bus> c = (ArrayList<Bus> :wink: b;//is this allowed??isnt it illegal?
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
3
I like...
posted
Sep 16, 2008 14:05:00
0
Why don't you write a small
test
program and try to compile and run it, and see if you get any errors?
Java Beginners FAQ
-
JavaRanch SCJP FAQ
-
The Java Tutorial
-
Java SE 7 API documentation
Scala Notes
- My blog about Scala
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: generics problem
Similar Threads
DownCast and Generics
mock test for generics & collections
Warnings during Generic assignments
Generics Doubt (Casting)
generic
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter