Home  >  Article  >  Java  >  java what does it mean?

java what does it mean?

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-11-11 15:37:117284browse

java <T> what does it mean?

##In JAVA, means generic, which means that another class needs to be used in the Tree class, but the specific type of the class to be used cannot be determined. , so use T instead for the time being. When the specific program knows what type to use, use that type to replace T, and it will be ok. For example, I need to instantiate a Tree class, and the class I need to use is String, then I can instantiate Tree() like this.

java <T> what does it mean?

php Chinese website, a large number of free

Java introductory tutorials, welcome to learn online!

The above is the detailed content of java what does it mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to open java .jarNext article:How to open java .jar

Related articles

See more