java int比较 [英] java int comparation

查看:123
本文介绍了java int比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java如何知道/评估两个 int 值的比较;

How does Java know/evaluate the comparison of two int values;

例如:

int a=5;
int b=10;

如何评估 a> b a == b a< b

请详细说明。

推荐答案

JVM解释指令,例如

The JVM interprets instructions such as

icmpge (Compare Greater than or Equal To)

进行比较。由平台特定的JVM决定如何在您选择的平台上执行此操作。

To do comparisons. It is up to the platform specific JVM how this is performed on your platform of choice.

因此您可以说比较是虚拟机本机的

So you could say that comparison is native to the Virtual Machine

这篇关于java int比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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