// Program to show dynamic variable initialization of variable
class DynInit
{
public static void main( String args[ ] )
{
double a = 8.0, b = 6.0;// c is dynamically initialized
double c = Math.sqrt(a * a + b * b);System.out.println("Hypotenuse is " + c);
}
}
Output:Hypotenuse is 10.0