Difference between B b and A<B> b.

Posted by chitresh on Stack Overflow See other posts from Stack Overflow or by chitresh
Published on 2010-06-09T23:44:36Z Indexed on 2010/06/09 23:52 UTC
Read the original article Hit count: 131

Filed under:
|

Assume class B extends class A and I want to declare a variable for B. What is more efficient and why?

  1. B b OR
  2. A<B> b.

© Stack Overflow or respective owner

Related posts about java

Related posts about types