gpt4 book ai didi

java - lub(T1,... Tn) 是什么意思?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:12:12 25 4
gpt4 key购买 nike

以下引自

JLS 14.20

The declared type of an exception parameter that denotes its type as aunion with alternatives D1 | D2 | ... | Dn is lub(D1, D2, ..., Dn).

这里的 lub(D1,...Dn) 是什么?

最佳答案

它代表“最小上界”并在§4.10.4. Least Upper Bound中正式定义。 :

The least upper bound, or "lub", of a set of reference types is a shared supertype that is more specific than any other shared supertype (that is, no other shared supertype is a subtype of the least upper bound).

关于java - lub(T1,... Tn) 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26193918/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com