What do the first brackets in the java code line mean:

Function svaya_fn = (Function)inet_svaya.getSymbolFunction(); 

?

  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

1 answer 1

Cast. In this case, the object returned by the getSymbolFunction function will be cast to the Function type. If casting is not possible, then ClassCastException will be thrown ClassCastException