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);
  }
}
Source by www.quora.com #
 
PREVIOUS NEXT
Tagged: #Java #final #Variable
ADD COMMENT
Topic
Name
1+8 =