Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

final java

//allows for variables to be unchanged throught a program
final float constant = 12;
println(constant);  // Prints "12" to the console
constant += 6;  // ERROR! It's not possible to change a "final" value
Source by www.quora.com #
 
PREVIOUS NEXT
Tagged: #final #java
ADD COMMENT
Topic
Name
1+3 =