"Java编程语言类型"的定义是什么? [英] What is the definition for a "Java programming language type"

查看:86
本文介绍了"Java编程语言类型"的定义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在网上搜索,我找不到"Java编程语言类型"一词的定义.当我阅读 Oracle的JEE教程时,我跨过了几次:

Searching the web I didn't find a definition for the term "Java programming language type". I stepped over it several times, when I was reading Oracle's JEE tutorial:

  • 28.2 Types Supported by JAX-WS
  • 29.2.4.1 The Request Method Designator Annotations
  • 29.2.6 Extracting Request Parameters
  • 37.1.2.3 Using Collections in Entity Fields and Properties
  • 37.1.6 Embeddable Classes in Entities

有时候,我认为所有Java类都由表达式表示,包括我自己定义的那些类,有时我认为仅Java附带的那些类.

Sometimes I think all Java classes are meant by the expression, including those I define myself, sometimes I think only those that are shipped with Java.

如果"Java编程语言类型"只是任何Java类,为什么在这里使用这样的表达式?我也找到了术语"Java编程语言类",但是我认为这两件事的意思是相同的.

If a "Java programming language type" is just any Java class, why do they use such an expression here? Also I found the term "Java programming language class", but I think these two things mean the same.

推荐答案

类型的完整正式定义是JLS在以下

The full formal definition of type is what is defined in the JLS at the following link.

基本上,在Java中,有两种类型:

Basically in java there are two kind of types:

  • 原始语
  • 引用

原语是:

  • int
  • 字节
  • 布尔值
  • char
  • 浮动
  • double

参考是:

  • classes
  • interfaces
  • type variables
  • arrays

所有其他定义是针对某些框架或库支持的类型的.

All others definitions are for types supported by some framework or libraries.

这篇关于"Java编程语言类型"的定义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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