Write the Java code to declare any constant (say gravitational constant) and to get its value.

Class ABC{static final float GRAVITATIONAL_CONSTANT = 9.8;public void getConstant(){system.out.println("Gravitational_Constant: " + GRAVITATIONAL_CONSTANT);}}

 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions