开发者

Several small questions considering the JavaFX Script programming language

开发者 https://www.devze.com 2022-12-21 02:52 出处:网络
Which are the min/max values I can pass to an Integer/Number? Does Integer use java.lang.Integer internally? And what if the variable overflows? Does it automatically expand java.lang.Long?

Which are the min/max values I can pass to an Integer/Number? Does Integer use java.lang.Integer internally? And what if the variable overflows? Does it automatically expand java.lang.Long?

In an article I read the def keyword is the equivalent of marking a variable as final in Java but to me, it looks like it's more like const in C.

开发者_StackOverflow社区

Does JavaFX have checked exceptions?

Sadly, this is what the [Language Reference][1] says:

[To do: write chapter]


The min/max values of Integer, Float, Long, etc. in JavaFX Script are the same as Java. You can use Integer.MAX_VALUE. JavaFX will compile down to the Java equivalents internally.

Def is meant to be used for constants or immutable singletons.

JavaFX Script does not have checked exceptions, but you can still catch them with a try/catch block.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号