Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java final Variable

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: #Java #final #Variable
ADD COMMENT
Topic
Name
3+6 =