java creare costante

Java
public final static nomevariabile=10;
Source

Also in Java: