Java-preliminary Understanding-Common object API (set frame-generics-generic-limit-lower)

Source: Internet
Author: User

One.

Then the previous section of the example to expand the description, the first question mark in the form of writing the whole is the following. What type is a subclass of object.

In the example in the previous section, the person is fixed and its subclasses can be arbitrarily changed, but the upper bound is fixed.

For the lower bound for example, demonstrate that the iterator generics and get iterator generic collections are consistent. Iterators are taken over, and what is passed is, of course, what gets.

How does it pass? It is OK to pass student and person in the collection of the main function, the worker is not. But its application is not very obvious. This is not a lot of practice, so when to do it? Next, the upper and lower limits are reflected in the set.

Java-preliminary Understanding-Common object API (set frame-generics-generic-limit-lower)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.