Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

final Variable java

class Main {
  public static void main(String[] args) {

    // create a final variable
    final int AGE = 32;

    // try to change the final variable
    AGE = 45;
    System.out.println("Age: " + AGE);
  }
}
 
PREVIOUS NEXT
Tagged: #final #Variable #java
ADD COMMENT
Topic
Name
4+2 =