0

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.

Does JavaFX have checked exceptions?

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

[To do: write chapter]

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.