Dynamic Initialization
Java allows variables to be initialized dynamically.
public class Main {
public static void main(String args[]) {
// c is dynamically initialized
double c = Math.sqrt(2 * 2);
System.out.println("c is " + c);
}
}
The output from the code above is
c is 2.0