参考数据类型是关键字吗? [英] Are reference data types keywords ?

查看:100
本文介绍了参考数据类型是关键字吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们



我对编码完全不熟悉。所以我从JAVA开始。

我脑子里有个问题。我的问题是:

参考数据类型可以被视为关键字吗?

如果我错了,请纠正我。

Hey guys

I'm completely new to coding. So I'm starting with JAVA.
I have a question in my mind. My question is:
Can reference data types be considered as keywords ?
Correct me if I am wrong.

推荐答案

某些Java类型具有指定的语言关键字。查看完整列表:

http://en.wikipedia.org/wiki/List_of_Java_keywords [ ^ ],

http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html [ ^ ]。



您将看到:表示类型的所有关键字仅代表基本类型,它们都是值类型。 />


重要的是要理解:这不是一些基本原则,具体而言,这只是Java的方法。例如,.NET有许多类似的功能,但它也有一些保留字(在某种意义上:你不能声明自己的类型,这个名称的变量成员)代表类型,被认为是别名基类库中定义的类型名称。



-SA
Some of Java types have designated language keywords. Look at the full list:
http://en.wikipedia.org/wiki/List_of_Java_keywords[^],
http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html[^].

You will see: all the keywords representing types represent only primitive types, which are all value types.

It's important to understand: this is not some fundamental principle, this is just the approach of Java, specifically. For example, .NET has many similar features, but it also has some reserved words (in the sense: you cannot declare your own type, member of variable with this name) representing types, which are considered as aliases of the type names defined in the base class library.

—SA


这篇关于参考数据类型是关键字吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆