java int comparation

前端 未结 4 1382
自闭症患者
自闭症患者 2021-01-26 02:30

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

for example:

int a=5;
int b=10;

How does it evaluates whethe

4条回答
  •  别那么骄傲
    2021-01-26 02:37

    The JVM interprets instructions such as

    icmpge (Compare Greater than or Equal To)
    

    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

提交回复
热议问题